summaryrefslogtreecommitdiff
path: root/ext/cache
diff options
context:
space:
mode:
Diffstat (limited to 'ext/cache')
-rw-r--r--ext/cache/01_cache.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/cache/01_cache.js b/ext/cache/01_cache.js
index 60ed1eb75..ab44c11b5 100644
--- a/ext/cache/01_cache.js
+++ b/ext/cache/01_cache.js
@@ -6,7 +6,6 @@
const webidl = window.__bootstrap.webidl;
const {
Symbol,
- SafeArrayIterator,
TypeError,
ObjectPrototypeIsPrototypeOf,
} = window.__bootstrap.primordials;
@@ -115,7 +114,8 @@
const varyHeader = getHeader(innerResponse.headerList, "vary");
if (varyHeader) {
const fieldValues = varyHeader.split(",");
- for (const field of new SafeArrayIterator(fieldValues)) {
+ for (let i = 0; i < fieldValues.length; ++i) {
+ const field = fieldValues[i];
if (field.trim() === "*") {
throw new TypeError("Vary header must not contain '*'");
}