From 0ea39dbd967b03cd9a7f9a69b7c916c4a417cf8c Mon Sep 17 00:00:00 2001 From: Antonio Duran Date: Thu, 29 Oct 2026 15:39:29 -0600 Subject: [PATCH] test: convert forEach to for of test-buffer-inheritance file Signed-off-by: Antonio Duran --- test/parallel/test-buffer-inheritance.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-buffer-inheritance.js b/test/parallel/test-buffer-inheritance.js index 4794f567172d..238593346db7 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(); -}); +}