We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5a2167 commit fb50cf0Copy full SHA for fb50cf0
3 files changed
benchmark/util/normalize-encoding.js
@@ -5,21 +5,19 @@ const assert = require('assert');
5
6
const groupedInputs = {
7
group_common: ['undefined', 'utf8', 'utf-8', 'base64',
8
- 'binary', 'latin1', 'ucs-2', 'usc-2'],
+ 'binary', 'latin1', 'ucs-2'],
9
group_upper: ['UTF-8', 'UTF8', 'UCS2', 'UTF-16LE',
10
- 'UTF16LE', 'BASE64', 'UCS-2', 'USC-2'],
+ 'UTF16LE', 'BASE64', 'UCS-2'],
11
group_uncommon: ['foo', '1', 'false', 'undefined', '[]', '{}'],
12
- group_misc: ['', 'utf16le', 'usc2', 'hex', 'HEX', 'BINARY']
+ group_misc: ['', 'utf16le', 'hex', 'HEX', 'BINARY']
13
};
14
15
const inputs = [
16
'',
17
'utf8', 'utf-8', 'UTF-8',
18
'UTF8', 'Utf8', 'uTf-8', 'utF-8',
19
'ucs2', 'UCS2', 'UcS2',
20
- 'USC2', 'usc2', 'uSc2',
21
'ucs-2', 'UCS-2', 'UcS-2',
22
- 'usc-2', 'USC-2', 'uSc-2',
23
'utf16le', 'utf-16le', 'UTF-16LE', 'UTF16LE',
24
'binary', 'BINARY', 'latin1', 'base64', 'BASE64',
25
'hex', 'HEX', 'foo', '1', 'false', 'undefined', '[]', '{}'];
lib/internal/util.js
@@ -127,7 +127,6 @@ function slowCases(enc) {
127
enc = `${enc}`.toLowerCase();
128
if (enc === 'utf-8') return 'utf8';
129
if (enc === 'ascii') return 'ascii';
130
- if (enc === 'usc-2') return 'utf16le';
131
if (enc === 'ucs-2') return 'utf16le';
132
break;
133
case 6:
test/parallel/test-internal-util-normalizeencoding.js
@@ -25,9 +25,6 @@ const tests = [
['utf-16le', 'utf16le'],
26
['UTF-16LE', 'utf16le'],
27
['UTF16LE', 'utf16le'],
28
- ['usc-2', 'utf16le'],
29
- ['USC-2', 'utf16le'],
30
- ['uSc-2', 'utf16le'],
31
['binary', 'latin1'],
32
['BINARY', 'latin1'],
33
['latin1', 'latin1'],
0 commit comments