Skip to content
Merged
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
6 changes: 5 additions & 1 deletion test/parallel/test-util-text-decoder.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
'use strict';

require('../common');
const common = require('../common');

const test = require('node:test');
const assert = require('node:assert');

test('TextDecoder correctly decodes windows-1252 encoded data', (t) => {
if (!common.hasIntl) {
common.skip('missing Intl');
}
Comment thread
aduh95 marked this conversation as resolved.
Outdated

const latin1Bytes = new Uint8Array([0xc1, 0xe9, 0xf3]);

const expectedString = 'Áéó';
Expand Down