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
Unexpected identifier
SyntaxError: Unexpected identifier
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:404:25)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at gen (/tmp/gen/test.js:7:9)
at next (native)
at /tmp/gen/test.js:15:8
No data about linenumber and filename. Only "Unexpected identifier".
node --version
v5.0.0
The text was updated successfully, but these errors were encountered:
mscdex
added
the
lib / src
Issues and PRs related to general changes in the lib or src directory.
label
Dec 15, 2015
This actually isn't specific to generator functions. Errors coming from vm are typically not decorated with the "arrow message." FWIW I've submitted #4287 that always adds that extra information to require() errors.
mscdex
added
module
Issues and PRs related to the module subsystem.
and removed
lib / src
Issues and PRs related to general changes in the lib or src directory.
labels
Dec 15, 2015
This provides more information when encountering a syntax or similar
error when executing a file with require().
Fixes: nodejs#4286
PR-URL: nodejs#4287
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
scovetta
pushed a commit
to scovetta/node
that referenced
this issue
Apr 2, 2016
This provides more information when encountering a syntax or similar
error when executing a file with require().
Fixes: nodejs#4286
PR-URL: nodejs#4287
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Content of
test.js
:Content of
bad.js
:Stack trace:
No data about linenumber and filename. Only "Unexpected identifier".
The text was updated successfully, but these errors were encountered: