Js2Py
Js2Py copied to clipboard
fix bug in ObjectExpression translation
below code cause a RuntimeError
t1=js2py.translate_js('''
var t1 = {
f1: function () { return '1' },
get f2() { return '0' }
};
''')
This patch fix that.
probably add test for ci for this fixed bug?
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.).