Skip to content

Conversation

@partic2
Copy link

@partic2 partic2 commented Sep 28, 2021

below code cause a RuntimeError

t1=js2py.translate_js('''
var t1 = {
    f1: function () { return '1' },
    get f2() { return '0' }
};
''')

This patch fix that.

@4144
Copy link
Contributor

4144 commented Sep 28, 2021

probably add test for ci for this fixed bug?

@partic2
Copy link
Author

partic2 commented Sep 29, 2021

probably add test for ci for this fixed bug?

I don't known where to put the test case and how to run the test on my host(I develope on Windows10 Python3.8, and neither the tests/run.py nor simple_test.py seems to work correctly.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants