In the test case below, I would expect the uncaughtException handler to run (since the domain doesn't have an error event handler), but it doesn't.
Verified with node v0.10.39 and v4.2.1.
vardomain=require('domain');vard=domain.create();d.enter();process.on('uncaughtException',function(e){console.log('Uncaught exception: ',e);});setTimeout(function(){thrownewError('Bla!');},1);
In the test case below, I would expect the
uncaughtExceptionhandler to run (since the domain doesn't have anerrorevent handler), but it doesn't.Verified with node v0.10.39 and v4.2.1.