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
After search, I found these two issues related: #3784 #4013
It seems node-5.2 fix this bug.
But after I install node-5.6, I found it only be fixed in REPL.
In script require() another script, these is no locatoin infomation when require() failed.
The text was updated successfully, but these errors were encountered:
Sorry for my misunderstanding.
My problem is in uncaughtException handler, there is no syntax error location.
The following two scripts shows the problem:
error_location_main.js
var fs = require("fs");
fs.stat("aaa", function (err, stats) {
}
On node-5.6, run error_location_main.js, I got:
uncaughtException: SyntaxError: missing ) after argument list
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (D:\home\js\modules_by_me\levelnode\try\error_location_main.js:7:1)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
strrchr
changed the title
Need SyntaxError location when require() failed
Need SyntaxError location when require() failed in uncaughtException handler
Feb 18, 2016
After search, I found these two issues related:
#3784
#4013
It seems node-5.2 fix this bug.
But after I install node-5.6, I found it only be fixed in REPL.
In script require() another script, these is no locatoin infomation when require() failed.
The text was updated successfully, but these errors were encountered: