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>
This commit is contained in:
Antonio Duran authored and Antoine du Hamel committed 2026-11-12 17:45:32 +01:00
1 parent 41e8612056
commit 64d75bc661
1 file changed
+2 -2
+2 -2
View File
@@ -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();
});
}