mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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:
parent
1a7add76a9
commit
ee81bce909
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user