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); } - }); + } });