Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
showing that there's a breakage in how our stack traces are being initialized.
Error.stackTraceLimit = Infinity;
process.addAsyncListener(function() { }, {
error: function onError() {
throw new Error('onError');
setImmediate(function() {
throw new Error('crap');
process.on('exit', function() {
process._rawDebug('exit - _rawDebug');
// output:
// /tmp/test2.js:5
// throw new Error('onError');
// ^
// Error: onError
// at onError (/tmp/test2.js:5:11)
// at errorHandler (node.js:461:21)
// at process._fatalException (node.js:225:20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.