summaryrefslogtreecommitdiff
path: root/ext/web/10_filereader.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-02-07 13:54:32 +0100
committerGitHub <noreply@github.com>2022-02-07 13:54:32 +0100
commitbf22f114a6e049744866ebaba48faec2cb86549b (patch)
treeea6814e51bade2355144546f21178f54811a57f2 /ext/web/10_filereader.js
parent9c7ed1c98b75c3557ac9e269212dcf655f69c0a2 (diff)
refactor: update runtime code for primordial check for iterators (#13510)
Diffstat (limited to 'ext/web/10_filereader.js')
-rw-r--r--ext/web/10_filereader.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/web/10_filereader.js b/ext/web/10_filereader.js
index 039d3395d..c50635ea8 100644
--- a/ext/web/10_filereader.js
+++ b/ext/web/10_filereader.js
@@ -30,6 +30,7 @@
ObjectDefineProperty,
ObjectPrototypeIsPrototypeOf,
queueMicrotask,
+ SafeArrayIterator,
StringFromCodePoint,
Symbol,
TypedArrayPrototypeSet,
@@ -484,7 +485,11 @@
if (typeof wrappedHandler.handler !== "function") {
return;
}
- return FunctionPrototypeCall(wrappedHandler.handler, this, ...args);
+ return FunctionPrototypeCall(
+ wrappedHandler.handler,
+ this,
+ ...new SafeArrayIterator(args),
+ );
}
wrappedHandler.handler = handler;
return wrappedHandler;