You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (parent) { node.parent = parent; }
^
TypeError: Cannot set property 'parent' of null
at visit (/usr/local/lib/node_modules/js2php/index.js:47:31)
at visit (/usr/local/lib/node_modules/js2php/index.js:424:18)
at visit (/usr/local/lib/node_modules/js2php/index.js:52:20)
at visit (/usr/local/lib/node_modules/js2php/index.js:387:18)
at visit (/usr/local/lib/node_modules/js2php/index.js:396:22)
at visit (/usr/local/lib/node_modules/js2php/index.js:396:22)
at visit (/usr/local/lib/node_modules/js2php/index.js:396:22)
at visit (/usr/local/lib/node_modules/js2php/index.js:52:20)
at visit (/usr/local/lib/node_modules/js2php/index.js:266:27)
at visit (/usr/local/lib/node_modules/js2php/index.js:483:17)
Initially it was causing issue due to throw statement. But it is failing even after commenting throw statement.
Here is the javascript code nimn.js. I had simplified template literals in normal string concatenation form in doubt if they are not supported.
The text was updated successfully, but these errors were encountered:
Hi @amitguptagwl, sorry the delay to answer. For some reason I wasn't receiving email updates about this project.
I couldn't reproduce the issue you described, though. I've successfully transpiled your nimn.js script without errors. (even though it's invalid PHP code)
Initially it was causing issue due to throw statement. But it is failing even after commenting throw statement.
Here is the javascript code nimn.js. I had simplified template literals in normal string concatenation form in doubt if they are not supported.
The text was updated successfully, but these errors were encountered: