summaryrefslogtreecommitdiff
path: root/ext/http/01_http.js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2023-03-13 19:24:31 +0900
committerGitHub <noreply@github.com>2023-03-13 19:24:31 +0900
commite5673f5ed85774831234fe70290d5802bbd47c15 (patch)
tree59a8deb3e81bc596ec73afcaae01de9a1cb1e845 /ext/http/01_http.js
parentbcb6ee9d0864f490f6da47cbe2593310b21333ff (diff)
fix(core): `SafePromiseAll` to be unaffected by `Array#@@iterator` (#17542)
Diffstat (limited to 'ext/http/01_http.js')
-rw-r--r--ext/http/01_http.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/http/01_http.js b/ext/http/01_http.js
index 1a8f8b853..fee30f7f0 100644
--- a/ext/http/01_http.js
+++ b/ext/http/01_http.js
@@ -510,7 +510,8 @@ function buildCaseInsensitiveCommaValueFinder(checkText) {
/** @param value {string} */
function hasWord(value) {
- for (const [cLower, cUpper] of charCodes) {
+ for (let j = 0; j < charCodes.length; ++j) {
+ const { 0: cLower, 1: cUpper } = charCodes[j];
if (cLower === char || cUpper === char) {
char = StringPrototypeCharCodeAt(value, ++i);
} else {