mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
chore: Update dlint (#17031)
Introduces `SafeSetIterator` and `SafeMapIterator` to primordials
This commit is contained in:
parent
2ac575abfb
commit
948f85216a
31 changed files with 222 additions and 141 deletions
3
ext/cache/01_cache.js
vendored
3
ext/cache/01_cache.js
vendored
|
@ -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 '*'");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue