summaryrefslogtreecommitdiff
path: root/lib/domain.js
diff options
context:
space:
mode:
authorToshihiro Nakamura <toshihiro.nakamura@gmail.com>2012-07-08 09:30:07 +0900
committerisaacs <i@izs.me>2012-07-09 09:37:46 -0700
commit6530310ed59c1056aa71c17133b5dbee87e2415c (patch)
treec5033c5d9277769de23c17a67135fd6ea79e4a5f /lib/domain.js
parent2a8380ce578a52a98a81b80d4747c6ca144874c5 (diff)
downloadnode-new-6530310ed59c1056aa71c17133b5dbee87e2415c.tar.gz
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
Diffstat (limited to 'lib/domain.js')
-rw-r--r--lib/domain.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/domain.js b/lib/domain.js
index 7c4a85226a..1524627a5c 100644
--- a/lib/domain.js
+++ b/lib/domain.js
@@ -185,7 +185,7 @@ Domain.prototype.bind = function(cb, interceptError) {
// slower for less common case: cb(er, foo, bar, baz, ...)
args = new Array(len - 1);
for (var i = 1; i < len; i++) {
- args[i] = arguments[i - 1];
+ args[i - 1] = arguments[i];
}
break;
}