Last active
November 15, 2016 21:40
-
-
Save lance/c29af1f40fb8242a5ebc23225a467999 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Not super helpful | |
> Error: Surprise! | |
at Timeout.foobar [as _onTimeout] (repl:2:7) | |
at ontimeout (timers.js:365:14) | |
at tryOnTimeout (timers.js:237:5) | |
at Timer.listOnTimeout (timers.js:207:5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function foo () { | |
setTimeout(bar, 10); | |
} | |
function bar () { | |
setTimeout(foobar, 50); | |
} | |
function foobar () { | |
throw new Error('Surprise!'); | |
} | |
foo(); | |
process.on('uncaughtException', (e) => process._rawDebug(e.stack)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment