From 33968836a0384e87d14661d452356433240fafbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=A9=EC=A7=84=ED=98=81?= Date: Tue, 29 Jul 2025 21:23:26 +0900 Subject: [PATCH] assert: change utils to use index instead of for...of --- lib/internal/assert/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/internal/assert/utils.js b/lib/internal/assert/utils.js index d059fa89baf7d4..13e41d67c635c2 100644 --- a/lib/internal/assert/utils.js +++ b/lib/internal/assert/utils.js @@ -222,7 +222,8 @@ function getErrMessage(message, fn) { } const frames = StringPrototypeSplit(message, '\n'); message = ArrayPrototypeShift(frames); - for (const frame of frames) { + for (let i = 0; i < frames.length; i++) { + const frame = frames[i]; let pos = 0; while (pos < column && (frame[pos] === ' ' || frame[pos] === '\t')) { pos++;