Skip to content

Commit a9d2909

Browse files
HonzaMacUlisesGascon
authored andcommitted
test: replace forEach in whatwg-encoding-custom-interop
PR-URL: #50607 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent d08eb38 commit a9d2909

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-whatwg-encoding-custom-interop.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ assert(TextEncoder);
5656
encodingGetter.call(instance);
5757

5858
const invalidThisArgs = [{}, [], true, 1, '', new TextDecoder()];
59-
invalidThisArgs.forEach((i) => {
59+
for (const i of invalidThisArgs) {
6060
assert.throws(() => inspectFn.call(i, Infinity, {}), expectedError);
6161
assert.throws(() => encodeFn.call(i), expectedError);
6262
assert.throws(() => encodingGetter.call(i), expectedError);
63-
});
63+
}
6464
}

0 commit comments

Comments
 (0)