From c762869259585a48b9052bb411a053232121d9b7 Mon Sep 17 00:00:00 2001 From: "Felix P." Date: Thu, 13 Aug 2026 14:47:56 -0400 Subject: [PATCH] test: use for-of instead of forEach Signed-off-by: Felix P. --- test/parallel/test-arm-math-illegal-instruction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-arm-math-illegal-instruction.js b/test/parallel/test-arm-math-illegal-instruction.js index c4a6ec01ba88..0e53a22c5244 100644 --- a/test/parallel/test-arm-math-illegal-instruction.js +++ b/test/parallel/test-arm-math-illegal-instruction.js @@ -9,10 +9,10 @@ const { test } = require('node:test'); // Iterate over all Math functions test('Iterate over all Math functions', () => { - Object.getOwnPropertyNames(Math).forEach((functionName) => { + for (const functionName of Object.getOwnPropertyNames(Math)) { if (!/[A-Z]/.test(functionName)) { // The function names don't have capital letters. Math[functionName](-0.5); } - }); + } });