Skip to content
Permalink
Browse files

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>
  • Loading branch information
Tembrechts authored and MylesBorins committed Nov 12, 2019
1 parent 7f0e7fd commit 0c4bb4a70e07f780632eb5afa93c6ac3cd606138
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/timers.js
@@ -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:

0 comments on commit 0c4bb4a

Please sign in to comment.
You can’t perform that action at this time.