summaryrefslogtreecommitdiff
path: root/ext/web/01_mimesniff.js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2023-01-06 21:45:23 +0900
committerGitHub <noreply@github.com>2023-01-06 21:45:23 +0900
commitff89ff4abba39ce158056d390e761495f5a7bc86 (patch)
tree03a9c71b5bb3889842db06ed41c3999074c4107a /ext/web/01_mimesniff.js
parent39cbaa6d34c249afc4b197836da1fa6dd143cbf9 (diff)
perf(ext,runtime): remove using `SafeArrayIterator` from `for-of` (#17255)
Diffstat (limited to 'ext/web/01_mimesniff.js')
-rw-r--r--ext/web/01_mimesniff.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/web/01_mimesniff.js b/ext/web/01_mimesniff.js
index f0f02d53a..2d67d5f95 100644
--- a/ext/web/01_mimesniff.js
+++ b/ext/web/01_mimesniff.js
@@ -16,7 +16,6 @@
MapPrototypeHas,
MapPrototypeSet,
RegExpPrototypeTest,
- SafeArrayIterator,
SafeMapIterator,
StringPrototypeReplaceAll,
StringPrototypeToLowerCase,
@@ -223,7 +222,8 @@
let charset = null;
let essence_ = null;
let mimeType = null;
- for (const value of new SafeArrayIterator(headerValues)) {
+ for (let i = 0; i < headerValues.length; ++i) {
+ const value = headerValues[i];
const temporaryMimeType = parseMimeType(value);
if (
temporaryMimeType === null ||