Commit 5b5f38479ca for nodejs

commit 5b5f38479ca2e55099f0fb2643dc54c749e30cd8
Author: Antonio Duran <ing.antonio.duran@gmail.com>
Date:   Mon Nov 2 10:20:12 2026 -0600

    test: convert forEach to for of test-buffer-inheritance file

    Signed-off-by: Antonio Duran <ing.antonio.duran@gmail.com>
    PR-URL: https://github.com/nodejs/node/pull/67121
    Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>

diff --git a/test/parallel/test-buffer-inheritance.js b/test/parallel/test-buffer-inheritance.js
index 4794f567172..238593346db 100644
--- a/test/parallel/test-buffer-inheritance.js
+++ b/test/parallel/test-buffer-inheritance.js
@@ -22,7 +22,7 @@ T.prototype.sum = function sum() {

 const vals = [new T(4), T(4)];

-vals.forEach(function(t) {
+for (const t of vals) {
   assert.strictEqual(t.constructor, T);
   assert.strictEqual(Object.getPrototypeOf(t), T.prototype);
   assert.strictEqual(Object.getPrototypeOf(Object.getPrototypeOf(t)),
@@ -36,4 +36,4 @@ vals.forEach(function(t) {

   // Check this does not throw
   t.toString();
-});
+}