domains: Handle errors thrown in nested error handlers
authorisaacs <i@izs.me>
Fri, 8 Mar 2013 19:12:15 +0000 (11:12 -0800)
committerisaacs <i@izs.me>
Fri, 8 Mar 2013 22:46:58 +0000 (14:46 -0800)
commit29cd0f2a77faa3b2a746e64e4871cded32e8aa98
tree3cabaf77fc92d6fdc523a9d35d577b9aa650f934
parente325ace53c83a89c94b24247c810ccdfa46f35df
domains: Handle errors thrown in nested error handlers

If a domain error handler throws, it should be caught if it was
in a stack of nested domains.

Fix #4953
src/node.js
test/simple/test-domain-nested-throw.js [new file with mode: 0644]