nw.js
nw.js copied to clipboard
[nwjc] SyntaxError: Unexpected identifier 'code' when using the nwjc generated file.
I am currently diagnosing an issue that happens on some RPG Maker MV plugins: When the affected plugins (like this one: https://chaucer.itch.io/random-item ) were compiled with nwjc, they would throw SyntaxError: Unexpected identifier 'code'. (Or SyntaxError: Unexpected identifier 'alias'. in v0.48.4 of nwjs). The current clue I have is at Object.alias(). I checked the plugin with Visual Studio Code and JSHint, but I can't see what would cause that error.