From 4d0d987a1a40d4bf4cf0357d4e004711ed919de0 Mon Sep 17 00:00:00 2001 From: Sergey Chernyshev Date: Thu, 25 Apr 2024 04:23:06 +0200 Subject: [PATCH] test: replace forEach with for..of in test-net-isipv4.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: /~https://github.com/nodejs/node/pull/49822 Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen --- graal-nodejs/test/parallel/test-net-isipv4.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/graal-nodejs/test/parallel/test-net-isipv4.js b/graal-nodejs/test/parallel/test-net-isipv4.js index 8f5c30569ce..2c478e6ac67 100644 --- a/graal-nodejs/test/parallel/test-net-isipv4.js +++ b/graal-nodejs/test/parallel/test-net-isipv4.js @@ -37,10 +37,10 @@ const v4not = [ '192.168.0.2000000000', ]; -v4.forEach((ip) => { +for (const ip of v4) { assert.strictEqual(net.isIPv4(ip), true); -}); +} -v4not.forEach((ip) => { +for (const ip of v4not) { assert.strictEqual(net.isIPv4(ip), false); -}); +}