Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
linting
  • Loading branch information
phated committed Apr 18, 2022
commit cdb76ff34b3020102b560d19265af9fcd0383124
4 changes: 2 additions & 2 deletions test/parallel/test-whatwg-encoding-custom-textdecoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ assert(TextDecoder);
// This is a utf16le buffer with a utf8 BOM,
// which should not be removed
const buf = Buffer.from([0xef, 0xbb, 0xbf, 0x74, 0x00, 0x65,
0x00, 0x73, 0x00, 0x74, 0x00, 0xac,
0x20])
0x00, 0x73, 0x00, 0x74, 0x00, 0xac,
0x20]);
const dec = new TextDecoder(i);
assert.strictEqual(dec.encoding, 'utf-16-le');
const res = dec.decode(buf);
Expand Down