From 948f85216a15e4ef489af21bb532a9b201b0364c Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Tue, 20 Dec 2022 11:37:50 +0900 Subject: chore: Update dlint (#17031) Introduces `SafeSetIterator` and `SafeMapIterator` to primordials --- ext/cache/01_cache.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/cache') 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 '*'"); } -- cgit v1.2.3