Skip to content

Commit 17db4e3

Browse files
Tembrechtstargos
authored andcommitted
lib: replace var with let/const
PR-URL: #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>
1 parent 69b1e68 commit 17db4e3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lib/timers.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function setTimeout(callback, after, arg1, arg2, arg3) {
118118
thrownewERR_INVALID_CALLBACK(callback);
119119
}
120120

121-
vari,args;
121+
leti,args;
122122
switch(arguments.length){
123123
// fast cases
124124
case1:
@@ -164,7 +164,7 @@ function setInterval(callback, repeat, arg1, arg2, arg3) {
164164
thrownewERR_INVALID_CALLBACK(callback);
165165
}
166166

167-
vari,args;
167+
leti,args;
168168
switch(arguments.length){
169169
// fast cases
170170
case1:
@@ -248,7 +248,7 @@ function setImmediate(callback, arg1, arg2, arg3) {
248248
thrownewERR_INVALID_CALLBACK(callback);
249249
}
250250

251-
vari,args;
251+
leti,args;
252252
switch(arguments.length){
253253
// fast cases
254254
case1:

0 commit comments

Comments
 (0)