Skip to content

Commit cf645d4

Browse files
test: changed forEach to for of loop
1 parent 9746ebc commit cf645d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/parallel/test-whatwg-url-custom-tostringtag.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ const test = [
2323
[Object.getPrototypeOf(spIterator), 'URLSearchParams Iterator'],
2424
];
2525

26-
test.forEach(([obj, expected]) => {
26+
for (const [obj, expected] of test) {
2727
assert.strictEqual(obj[Symbol.toStringTag], expected,
2828
`${obj[Symbol.toStringTag]} !== ${expected}`);
2929
const str = toString.call(obj);
3030
assert.strictEqual(str, `[object ${expected}]`,
3131
`${str} !== [object ${expected}]`);
32-
});
32+
}

0 commit comments

Comments
 (0)