-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib/timers.js: replace var with let/const #30404
Conversation
@@ -118,7 +118,7 @@ function setTimeout(callback, after, arg1, arg2, arg3) { | |||
throw new ERR_INVALID_CALLBACK(callback); | |||
} | |||
|
|||
var i, args; | |||
let i, args; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: move i
to line 135?
for (let i = 5; i < arguments.length; i++) {
@@ -164,7 +164,7 @@ function setInterval(callback, repeat, arg1, arg2, arg3) { | |||
throw new ERR_INVALID_CALLBACK(callback); | |||
} | |||
|
|||
var i, args; | |||
let i, args; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: move i
to line 181?
for (let i = 5; i < arguments.length; i++) {
@@ -248,7 +248,7 @@ function setImmediate(callback, arg1, arg2, arg3) { | |||
throw new ERR_INVALID_CALLBACK(callback); | |||
} | |||
|
|||
var i, args; | |||
let i, args; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: move i
to line 264?
for (let i = 4; i < arguments.length; i++) {
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>
landed in ee81bce, thanks for the contribution! |
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>
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>
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>
make -j4 test
(UNIX), orvcbuild test
(Windows) passes