Skip to content

Commit d513839

Browse files
authored
test: remove invalid parameter value
The `TextDecoder()` constructor's `options` argument must take an actual object if provided.
1 parent 810ab74 commit d513839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ if (common.hasIntl) {
7979
});
8080
}
8181

82-
// Test TextDecoder, label undefined, options null
82+
// Test TextDecoder, label undefined
8383
{
84-
const dec = new TextDecoder(undefined, null);
84+
const dec = new TextDecoder(undefined);
8585
assert.strictEqual(dec.encoding, 'utf-8');
8686
assert.strictEqual(dec.fatal, false);
8787
assert.strictEqual(dec.ignoreBOM, false);

0 commit comments

Comments
 (0)