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/url/00_url.js | |
parent | 9c7ed1c98b75c3557ac9e269212dcf655f69c0a2 (diff) |
refactor: update runtime code for primordial check for iterators (#13510)
Diffstat (limited to 'ext/url/00_url.js')
-rw-r--r-- | ext/url/00_url.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/url/00_url.js b/ext/url/00_url.js index 110890b7f..b83cdd17d 100644 --- a/ext/url/00_url.js +++ b/ext/url/00_url.js @@ -18,6 +18,7 @@ ArrayPrototypeSort, ArrayPrototypeSplice, ObjectKeys, + SafeArrayIterator, StringPrototypeSlice, Symbol, SymbolFor, @@ -345,7 +346,12 @@ "op_url_parse_search_params", StringPrototypeSlice(this.search, 1), ); - ArrayPrototypeSplice(params, 0, params.length, ...newParams); + ArrayPrototypeSplice( + params, + 0, + params.length, + ...new SafeArrayIterator(newParams), + ); } } |