From e1a774d3143391209ee348d93fb1540406b5d2c9 Mon Sep 17 00:00:00 2001 From: yorkie Date: Tue, 27 Sep 2016 09:43:38 +0800 Subject: [PATCH] dns: remove internal variable from makeAsync PR-URL: https://github.com/nodejs/node/pull/8800 Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Ben Noordhuis --- lib/dns.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns.js b/lib/dns.js index 9a81dfffd6d803..a993593810e59e 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); } };