Skip to content

Commit f019481

Browse files
author
Alexander Jones
committed
Replace forEach() with for ... of in test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js
From https://docs.google.com/spreadsheets/d/1mqLZafbDSI_2h6hijO4IYxoibjayzHYt__ZMbVc1s2A/edit#gid=0
1 parent 5e3217c commit f019481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const bad = [
4343
},
4444
];
4545

46-
bad.forEach((t) => {
46+
for (const t of bad) {
4747
assert.throws(
4848
() => {
4949
new TextDecoder(t.encoding, { fatal: true })
@@ -53,4 +53,4 @@ bad.forEach((t) => {
5353
name: 'TypeError'
5454
}
5555
);
56-
});
56+
}

0 commit comments

Comments
 (0)