Js2Py icon indicating copy to clipboard operation
Js2Py copied to clipboard

JsException: SyntaxError: Line 68: ArrayPattern is not supported by ECMA 5.1.

Open dipankarqlik opened this issue 5 years ago • 1 comments

Hi, I am trying to use Js2Py for the first time. I tried converting a Javascript file to Python like this: js2py.translate_file('a.js', 'a.py') and I get the below error:

JsException: SyntaxError: Line 68: ArrayPattern is not supported by ECMA 5.1.

I am unable to debug this. Is this something not supported? Any help would be appreciated.

dipankarqlik avatar Aug 24 '20 20:08 dipankarqlik

You'll need to use Babel with js2py to support the newer features in the code your running.

worstperson avatar Aug 25 '20 23:08 worstperson