lib: avoid unsafe array iteration in cli table · nodejs/node@60a9a28 · GitHub
Skip to content

Commit 60a9a28

Browse files
HoonDongKangaduh95
authored andcommitted
lib: avoid unsafe array iteration in cli table
Avoid unsafe array iteration because for...of relies on the user-mutable Symbol.iterator. Use an index-based loop instead. Signed-off-by: HoonDongKang <d159123@naver.com> PR-URL: #65838 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: Jordan Harband <ljharb@gmail.com>
1 parent c2620d0 commit 60a9a28

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎lib/internal/cli_table.js‎

Lines changed: 3 additions & 1 deletion

0 commit comments

Comments
 (0)