diff options
Diffstat (limited to 'core/01_core.js')
-rw-r--r-- | core/01_core.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/01_core.js b/core/01_core.js index 07ab758f1..a13bdc8dd 100644 --- a/core/01_core.js +++ b/core/01_core.js @@ -21,6 +21,7 @@ PromisePrototypeThen, RangeError, ReferenceError, + SafeArrayIterator, SafePromisePrototypeFinally, setQueueMicrotask, StringPrototypeSlice, @@ -198,7 +199,7 @@ const id = rollPromiseId(); let promise = PromisePrototypeThen(setPromise(id), unwrapOpResult); try { - ops[name](id, ...args); + ops[name](id, ...new SafeArrayIterator(args)); } catch (err) { // Cleanup the just-created promise getPromise(id); |