Js2Py
Js2Py copied to clipboard
JsException: SyntaxError: Line 68: ArrayPattern is not supported by ECMA 5.1.
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.
You'll need to use Babel with js2py to support the newer features in the code your running.