Created
November 14, 2014 00:40
-
-
Save misterdjules/a89e3e844106fe0f273a to your computer and use it in GitHub Desktop.
This file contains 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
➜ node git:(v0.10) ✗ cat ~/dev/should-not-abort.js | |
var domain = require('domain'); | |
var d = domain.create(); | |
d.on('error', function() { | |
}); | |
d.run(function doStuff() { | |
throw new Error("You should NOT see me"); | |
}); | |
➜ node git:(v0.10) ✗ ./node --abort-on-uncaught-exception ~/dev/should-not-abort.js | |
Uncaught Error: You should NOT see me | |
FROM | |
doStuff (/Users/JulienGilli/dev/should-not-abort.js:8:11) | |
b (domain.js:187:18) | |
Domain.run (domain.js:127:23) | |
Object.<anonymous> (/Users/JulienGilli/dev/should-not-abort.js:7:3) | |
Module._compile (module.js:456:26) | |
Object.Module._extensions..js (module.js:474:10) | |
Module.load (module.js:356:32) | |
Function.Module._load (module.js:312:12) | |
Function.Module.runMain (module.js:497:10) | |
startup (node.js:119:16) | |
node.js:909:3 | |
[1] 22815 abort ./node --abort-on-uncaught-exception ~/dev/should-not-abort.js | |
➜ node git:(v0.10) ✗ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment