Skip to content

Commit 7371ceb

Browse files
committed
lib/task_queues: change var to let/const
1 parent 84c7d27 commit 7371ceb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/process/task_queues.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ function nextTick(callback) {
107107
if (process._exiting)
108108
return;
109109

110-
var args;
110+
let args;
111111
switch (arguments.length) {
112112
case 1: break;
113113
case 2: args = [arguments[1]]; break;
114114
case 3: args = [arguments[1], arguments[2]]; break;
115115
case 4: args = [arguments[1], arguments[2], arguments[3]]; break;
116116
default:
117117
args = new Array(arguments.length - 1);
118-
for (var i = 1; i < arguments.length; i++)
118+
for (let i = 1; i < arguments.length; i++)
119119
args[i - 1] = arguments[i];
120120
}
121121

0 commit comments

Comments
 (0)