diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-02-07 13:54:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 13:54:32 +0100 |
commit | bf22f114a6e049744866ebaba48faec2cb86549b (patch) | |
tree | ea6814e51bade2355144546f21178f54811a57f2 /ext/web/10_filereader.js | |
parent | 9c7ed1c98b75c3557ac9e269212dcf655f69c0a2 (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.js | 7 |
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; |