From 48fef42ca9edafdbb0710eb2e4bce0bb311f307c Mon Sep 17 00:00:00 2001 From: Tembrechts Date: Tue, 12 Nov 2019 15:23:40 +0000 Subject: [PATCH] lib: replace var with let/const PR-URL: https://github.com/nodejs/node/pull/30404 Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- lib/timers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/timers.js b/lib/timers.js index f7fd157b3284ef..584f6bc9529dfe 100644 --- a/lib/timers.js +++ b/lib/timers.js @@ -118,7 +118,7 @@ function setTimeout(callback, after, arg1, arg2, arg3) { throw new ERR_INVALID_CALLBACK(callback); } - var i, args; + let i, args; switch (arguments.length) { // fast cases case 1: @@ -164,7 +164,7 @@ function setInterval(callback, repeat, arg1, arg2, arg3) { throw new ERR_INVALID_CALLBACK(callback); } - var i, args; + let i, args; switch (arguments.length) { // fast cases case 1: @@ -248,7 +248,7 @@ function setImmediate(callback, arg1, arg2, arg3) { throw new ERR_INVALID_CALLBACK(callback); } - var i, args; + let i, args; switch (arguments.length) { // fast cases case 1: