Open seyyedaliayati opened 2 years ago
Consider the following code snippet from Mozilla Web Docs:
const adventurer = { name: 'Alice', cat: { name: 'Dinah' } }; const dogName = adventurer.dog?.name; console.log(dogName); // expected output: undefined console.log(adventurer.someNonExistentMethod?.()); // expected output: undefined
This syntax is not supported by js2py. I got the following error message when parsing:
js2py
js2py.internals.simplex.JsException: SyntaxError: Line 9: Unexpected token .
Consider the following code snippet from Mozilla Web Docs:
This syntax is not supported by
js2py
. I got the following error message when parsing: