Created
November 6, 2012 02:12
-
-
Save othiym23/4022112 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 d1 = domain.create(); | |
var d2 = domain.create(); | |
d1.on('error', function (error) { console.error('got error in outer domain') }); | |
d2.on('error', function (error) { console.error('got error in inner domain') }); | |
d1.run(function () { | |
process.nextTick(function () { | |
d2.run(function () { | |
var object; | |
process.nextTick(function () { | |
console.error(object.notfound); | |
}); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment