domain: Remove first arg from intercepted fn
authorToshihiro Nakamura <toshihiro.nakamura@gmail.com>
Sun, 8 Jul 2012 00:30:07 +0000 (09:30 +0900)
committerisaacs <i@izs.me>
Mon, 9 Jul 2012 16:37:46 +0000 (09:37 -0700)
commit6530310ed59c1056aa71c17133b5dbee87e2415c
treec5033c5d9277769de23c17a67135fd6ea79e4a5f
parent2a8380ce578a52a98a81b80d4747c6ca144874c5
domain: Remove first arg from intercepted fn

Fix to remove the first-arg, in case arguments length is more than 2
Add domain.intercept() test about first-arg removal
lib/domain.js
test/simple/test-domain.js