diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2022-12-20 11:37:50 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 03:37:50 +0100 |
commit | 948f85216a15e4ef489af21bb532a9b201b0364c (patch) | |
tree | 35c2bbfa021cf9a4190ab803ed091c5547bfe9f4 /ext/cache | |
parent | 2ac575abfb75dc4533306c80240cb1beeb816b9b (diff) |
chore: Update dlint (#17031)
Introduces `SafeSetIterator` and `SafeMapIterator` to primordials
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 '*'"); } |