diff options
Diffstat (limited to 'ext/fetch/23_response.js')
-rw-r--r-- | ext/fetch/23_response.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/fetch/23_response.js b/ext/fetch/23_response.js index 3c19f963a..d5adb8042 100644 --- a/ext/fetch/23_response.js +++ b/ext/fetch/23_response.js @@ -97,11 +97,11 @@ */ function cloneInnerResponse(response) { const urlList = [...new SafeArrayIterator(response.urlList)]; - const headerList = [ - ...new SafeArrayIterator( - ArrayPrototypeMap(response.headerList, (x) => [x[0], x[1]]), - ), - ]; + const headerList = ArrayPrototypeMap( + response.headerList, + (x) => [x[0], x[1]], + ); + let body = null; if (response.body !== null) { body = response.body.clone(); |