Skip to content

Commit 17db4e3

Browse files
Tembrechtstargos
Tembrechts
authored andcommitted
lib: replace var with let/const
PR-URL: #30404 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 69b1e68 commit 17db4e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/timers.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function setTimeout(callback, after, arg1, arg2, arg3) {
118118
throw new ERR_INVALID_CALLBACK(callback);
119119
}
120120

121-
var i, args;
121+
let i, args;
122122
switch (arguments.length) {
123123
// fast cases
124124
case 1:
@@ -164,7 +164,7 @@ function setInterval(callback, repeat, arg1, arg2, arg3) {
164164
throw new ERR_INVALID_CALLBACK(callback);
165165
}
166166

167-
var i, args;
167+
let i, args;
168168
switch (arguments.length) {
169169
// fast cases
170170
case 1:
@@ -248,7 +248,7 @@ function setImmediate(callback, arg1, arg2, arg3) {
248248
throw new ERR_INVALID_CALLBACK(callback);
249249
}
250250

251-
var i, args;
251+
let i, args;
252252
switch (arguments.length) {
253253
// fast cases
254254
case 1:

0 commit comments

Comments
 (0)