Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 48fef42

Browse filesBrowse files
Tembrechtsaddaleax
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 d6a4488 commit 48fef42
Copy full SHA for 48fef42

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎lib/timers.js‎

Copy file name to clipboardExpand all lines: lib/timers.js
+3-3Lines 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
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.