diff options
Diffstat (limited to 'ext/cache')
-rw-r--r-- | ext/cache/01_cache.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/cache/01_cache.js b/ext/cache/01_cache.js index aefd989dd..5c249f2f8 100644 --- a/ext/cache/01_cache.js +++ b/ext/cache/01_cache.js @@ -6,6 +6,7 @@ const webidl = window.__bootstrap.webidl; const { Symbol, + SafeArrayIterator, TypeError, ObjectPrototypeIsPrototypeOf, } = window.__bootstrap.primordials; @@ -114,7 +115,7 @@ const varyHeader = getHeader(innerResponse.headerList, "vary"); if (varyHeader) { const fieldValues = varyHeader.split(","); - for (const field of fieldValues) { + for (const field of new SafeArrayIterator(fieldValues)) { if (field.trim() === "*") { throw new TypeError("Vary header must not contain '*'"); } |