Base code sample not working
basarat opened this issue · comments
Basarat Ali Syed commented
The following code
require('long-stack-traces');
function test() {
throw new Error('error');
}
setTimeout(test, Math.random() * 1000); // A
setTimeout(test, Math.random() * 1000); // B
Gives the following result :
$ node long.js
Uncaught at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
----------------------------------------
at Object.setTimeout
at Object..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function._load (module.js:312:12)
at Function.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
E:\longtrace\node_modules\long-stack-traces\lib\long-stack-traces.js
:80
throw ""; // TODO: throw the original error, or undefined?
^
Etienne Folio commented
Same here: install, throw an error, and…
Uncaught
----------------------------------------
at EventEmitter.on
at DestroyableTransform.once (events.js:185:8)
Uncaught undefined
d:\work\project\node_modules\long-stack-traces\lib\long-stack-traces.js:80
throw ""; // TODO: throw the original error, or undefined?
hum… not really working.