diff options
Diffstat (limited to 'ext/fetch/26_fetch.js')
-rw-r--r-- | ext/fetch/26_fetch.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/fetch/26_fetch.js b/ext/fetch/26_fetch.js index 0c58bbf97..bbcbb44f0 100644 --- a/ext/fetch/26_fetch.js +++ b/ext/fetch/26_fetch.js @@ -38,6 +38,7 @@ Promise, PromisePrototypeThen, PromisePrototypeCatch, + SafeArrayIterator, String, StringPrototypeStartsWith, StringPrototypeToLowerCase, @@ -168,7 +169,7 @@ if (this.urlList.length == 0) return null; return this.urlList[this.urlList.length - 1]; }, - urlList: recursive ? [] : [...req.urlList], + urlList: recursive ? [] : [...new SafeArrayIterator(req.urlList)], }; } @@ -331,7 +332,7 @@ if (recursive) return response; if (response.urlList.length === 0) { - response.urlList = [...req.urlList]; + response.urlList = [...new SafeArrayIterator(req.urlList)]; } return response; |