Skip to content

Commit

Permalink
lib/task_queues: change var to let/const
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-cappelle committed Nov 25, 2019
1 parent 84c7d27 commit 7371ceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/process/task_queues.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ function nextTick(callback) {
if (process._exiting)
return;

var args;
let args;
switch (arguments.length) {
case 1: break;
case 2: args = [arguments[1]]; break;
case 3: args = [arguments[1], arguments[2]]; break;
case 4: args = [arguments[1], arguments[2], arguments[3]]; break;
default:
args = new Array(arguments.length - 1);
for (var i = 1; i < arguments.length; i++)
for (let i = 1; i < arguments.length; i++)
args[i - 1] = arguments[i];
}

Expand Down

0 comments on commit 7371ceb

Please sign in to comment.