mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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:
1 parent
41e8612056
commit
64d75bc661
1 file changed
+2
-2
@@ -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();
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user