Commit d15118211df for nodejs

commit d15118211df4045107e86a827c7230351c250aca
Author: Emmanuel Florencio Trujillo <emmanuel.florencio.dev@gmail.com>
Date:   Mon Nov 2 10:19:14 2026 -0600

    test: convert .forEach to for...of in test-net-write-arguments.js

    Signed-off-by: EmmanuelFlorencioT <emmanuel.florencio.dev@gmail.com>
    PR-URL: https://github.com/nodejs/node/pull/67125
    Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>

diff --git a/test/parallel/test-net-write-arguments.js b/test/parallel/test-net-write-arguments.js
index 2e2aa554320..b867c17cd1e 100644
--- a/test/parallel/test-net-write-arguments.js
+++ b/test/parallel/test-net-write-arguments.js
@@ -14,17 +14,7 @@ assert.throws(() => {
   message: 'May not write null values to stream'
 });

-[
-  true,
-  false,
-  undefined,
-  1,
-  1.0,
-  +Infinity,
-  -Infinity,
-  [],
-  {},
-].forEach((value) => {
+for (const value of [ true, false, undefined, 1, 1.0, +Infinity, -Infinity, [], {} ]) {
   const socket = net.Stream({ highWaterMark: 0 });
   // We need to check the callback since 'error' will only
   // be emitted once per instance.
@@ -36,4 +26,4 @@ assert.throws(() => {
     message: 'The "chunk" argument must be of type string or an instance of ' +
               `Buffer, TypedArray, or DataView.${common.invalidArgTypeHelper(value)}`
   });
-});
+};