diff --git a/lib/timers.js b/lib/timers.js index b4c27fbeb9bf89..7b7fb4e04f52dc 100644 --- a/lib/timers.js +++ b/lib/timers.js @@ -260,7 +260,7 @@ TimerWrap.prototype[kOnTimeout] = function listOnTimeout(now) { continue; } - tryOnTimeout(timer, list); + tryOnTimeout(timer); } // If `L.peek(list)` returned nothing, the list was either empty or we have @@ -289,7 +289,7 @@ TimerWrap.prototype[kOnTimeout] = function listOnTimeout(now) { // An optimization so that the try/finally only de-optimizes (since at least v8 // 4.7) what is in this smaller function. -function tryOnTimeout(timer, list) { +function tryOnTimeout(timer) { timer._called = true; const timerAsyncId = (typeof timer[async_id_symbol] === 'number') ? timer[async_id_symbol] : null;