From e5673f5ed85774831234fe70290d5802bbd47c15 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Mon, 13 Mar 2023 19:24:31 +0900 Subject: fix(core): `SafePromiseAll` to be unaffected by `Array#@@iterator` (#17542) --- ext/http/01_http.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext') 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 { -- cgit v1.2.3