summaryrefslogtreecommitdiff
path: root/ext/url/00_url.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/url/00_url.js')
-rw-r--r--ext/url/00_url.js8
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),
+ );
}
}