diff options
| author | Kenta Moriuchi <moriken@kimamass.com> | 2023-01-06 21:45:23 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-06 21:45:23 +0900 |
| commit | ff89ff4abba39ce158056d390e761495f5a7bc86 (patch) | |
| tree | 03a9c71b5bb3889842db06ed41c3999074c4107a /ext/cache | |
| parent | 39cbaa6d34c249afc4b197836da1fa6dd143cbf9 (diff) | |
perf(ext,runtime): remove using `SafeArrayIterator` from `for-of` (#17255)
Diffstat (limited to 'ext/cache')
| -rw-r--r-- | ext/cache/01_cache.js | 4 |
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 '*'"); } |
