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
{{ message }}
Repository navigation
Useless stacktraces when using require in generator #4286
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".
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.
Activity
mscdex commentedon Dec 15, 2015
This actually isn't specific to generator functions. Errors coming from
vmare typically not decorated with the "arrow message." FWIW I've submitted #4287 that always adds that extra information torequire()errors.module: always decorate thrown errors
module: always decorate thrown errors
module: always decorate thrown errors