diff options
Diffstat (limited to 'ext/node/polyfills/internal/timers.mjs')
-rw-r--r-- | ext/node/polyfills/internal/timers.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/polyfills/internal/timers.mjs b/ext/node/polyfills/internal/timers.mjs index bdaf95d91..bdf258de6 100644 --- a/ext/node/polyfills/internal/timers.mjs +++ b/ext/node/polyfills/internal/timers.mjs @@ -117,8 +117,8 @@ Timeout.prototype[Symbol.toPrimitive] = function () { }; // Immediate constructor function. -export function Immediate(callback, args) { - this._immediateId = setImmediate_(callback, args); +export function Immediate(callback, ...args) { + this._immediateId = setImmediate_(callback, ...args); } // Make sure the linked list only shows the minimal necessary information. |