summaryrefslogtreecommitdiff
path: root/ext/fetch/23_request.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fetch/23_request.js')
-rw-r--r--ext/fetch/23_request.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/fetch/23_request.js b/ext/fetch/23_request.js
index 5294009ff..1ffdd2a60 100644
--- a/ext/fetch/23_request.js
+++ b/ext/fetch/23_request.js
@@ -38,6 +38,7 @@
ObjectKeys,
ObjectPrototypeIsPrototypeOf,
RegExpPrototypeTest,
+ SafeArrayIterator,
Symbol,
SymbolFor,
TypeError,
@@ -101,7 +102,9 @@
*/
function cloneInnerRequest(request) {
const headerList = [
- ...ArrayPrototypeMap(request.headerList, (x) => [x[0], x[1]]),
+ ...new SafeArrayIterator(
+ ArrayPrototypeMap(request.headerList, (x) => [x[0], x[1]]),
+ ),
];
let body = null;
if (request.body !== null) {