Skip to content

Commit

Permalink
Replace forEach() with for ... of in test-whatwg-encoding-custom-text…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Jones committed Nov 7, 2023
1 parent 5e3217c commit f019481
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const bad = [
},
];

bad.forEach((t) => {
for (const t of bad) {
assert.throws(
() => {
new TextDecoder(t.encoding, { fatal: true })
Expand All @@ -53,4 +53,4 @@ bad.forEach((t) => {
name: 'TypeError'
}
);
});
}

0 comments on commit f019481

Please sign in to comment.