domain: fix off-by-one in Domain.exit()
authorRyan Graham <r.m.graham@gmail.com>
Thu, 9 Jan 2014 05:36:54 +0000 (21:36 -0800)
committerTrevor Norris <trev.norris@gmail.com>
Thu, 9 Jan 2014 23:25:58 +0000 (15:25 -0800)
commit5106cadffba559ac788a8c1b9a555a6d192d95aa
tree1bc1f1e03f7d20f3eeb30859850c315e8b783035
parent2eddd7411234bf633df6a7bdb9c120ed89853324
domain: fix off-by-one in Domain.exit()

We want to clear the found domain and the domains after it.

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