Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var d = require('domain').create(); {
throw new Error("hello");
d.on('error', function(e) {
assert.strictEqual(e.message, 'hello');
throw new Error('goodbye');
/* separate process
process.on('uncaughtException', function(e2) {
assert.strictEqual(e2.message, 'goodbye');
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.