Created
November 18, 2014 00:25
-
-
Save misterdjules/2f2130cf5ad761db7e44 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
var domain = require('domain'); | |
var d = domain.create(); | |
d.on('error', function() { | |
console.log('error handler') | |
}); | |
d.run(function doStuff() { | |
require('fs').exists('not here', function(exists) { | |
console.log('exists complete'); | |
throw new Error('throw from exists cb'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment