summaryrefslogtreecommitdiff
path: root/ext/fetch/20_headers.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fetch/20_headers.js')
-rw-r--r--ext/fetch/20_headers.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/ext/fetch/20_headers.js b/ext/fetch/20_headers.js
index bea542c30..45bd29ad3 100644
--- a/ext/fetch/20_headers.js
+++ b/ext/fetch/20_headers.js
@@ -31,7 +31,6 @@ const {
ObjectEntries,
ObjectHasOwn,
RegExpPrototypeExec,
- SafeArrayIterator,
SafeMap,
MapPrototypeGet,
MapPrototypeHas,
@@ -262,11 +261,13 @@ class Headers {
}
}
+ const entries = ObjectEntries(headers);
+ for (let i = 0; i < cookies.length; ++i) {
+ ArrayPrototypePush(entries, cookies[i]);
+ }
+
return ArrayPrototypeSort(
- [
- ...new SafeArrayIterator(ObjectEntries(headers)),
- ...new SafeArrayIterator(cookies),
- ],
+ entries,
(a, b) => {
const akey = a[0];
const bkey = b[0];