Skip to content

Commit df0f575

Browse files
antonioduranaduh95
authored andcommitted
test: convert forEach to for of test-buffer-inheritance file
Signed-off-by: Antonio Duran <ing.antonio.duran@gmail.com> PR-URL: #67121 Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent cbffa1a commit df0f575

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/parallel/test-buffer-inheritance.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ T.prototype.sum = function sum() {
2222

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

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

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

0 commit comments

Comments
 (0)