diff --git a/lib/dns.js b/lib/dns.js index 9a81dfffd6..a993593810 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -63,8 +63,8 @@ function makeAsync(callback) { } else { var args = new Array(arguments.length + 1); args[0] = callback; - for (var i = 1, a = 0; a < arguments.length; ++i, ++a) - args[i] = arguments[a]; + for (var i = 0; i < arguments.length; ++i) + args[i + 1] = arguments[i]; process.nextTick.apply(null, args); } };