diff options
author | Toshihiro Nakamura <toshihiro.nakamura@gmail.com> | 2012-07-08 09:30:07 +0900 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-07-09 09:37:46 -0700 |
commit | 6530310ed59c1056aa71c17133b5dbee87e2415c (patch) | |
tree | c5033c5d9277769de23c17a67135fd6ea79e4a5f /lib/domain.js | |
parent | 2a8380ce578a52a98a81b80d4747c6ca144874c5 (diff) | |
download | node-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.js | 2 |
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; } |