Skip to content

Instantly share code, notes, and snippets.

@cxreg
Created December 22, 2012 00:42
Show Gist options
  • Save cxreg/4356821 to your computer and use it in GitHub Desktop.
Save cxreg/4356821 to your computer and use it in GitHub Desktop.
domain fail
var domain = require('domain');
var d = domain.create();
d.on('error', function() {
console.log('caught');
});
d.run(function() {
throw new Error('meh');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment