domains: exit() only affects active domains
authorRyan Graham <r.m.graham@gmail.com>
Thu, 9 Jan 2014 05:19:31 +0000 (21:19 -0800)
committerTrevor Norris <trev.norris@gmail.com>
Wed, 15 Jan 2014 20:27:10 +0000 (12:27 -0800)
commit7f81ca2c47a7c9376f831e8be5d62a5adc917e4e
tree2426dae7c5d6e0bab3a502572b0a8e0175cc2328
parente7f7e2aeca77485b99969dccedb4b71e2c157b9d
domains: exit() only affects active domains

domain.create().exit() should not clear the domain stack if the domain
instance does not exist within the stack.

Signed-off-by: Trevor Norris <trev.norris@gmail.com>
lib/domain.js
test/simple/test-domain-safe-exit.js [new file with mode: 0644]