lib: replace var with let/const

PR-URL: https://github.com/nodejs/node/pull/30404
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Tembrechts 2019-11-12 15:23:40 +00:00 committed by Gireesh Punathil
parent 1a7add76a9
commit ee81bce909

View File

@ -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: