Js2Py icon indicating copy to clipboard operation
Js2Py copied to clipboard

fix bug in ObjectExpression translation

Open partic2 opened this issue 3 years ago • 2 comments

below code cause a RuntimeError

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

This patch fix that.

partic2 avatar Sep 28 '21 12:09 partic2

probably add test for ci for this fixed bug?

4144 avatar Sep 28 '21 21:09 4144

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.).

partic2 avatar Sep 29 '21 01:09 partic2