Created
December 22, 2012 00:42
-
-
Save cxreg/4356821 to your computer and use it in GitHub Desktop.
domain fail
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
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