summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/timers.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/timers.mjs')
-rw-r--r--ext/node/polyfills/internal/timers.mjs4
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.