/third_party/node/test/parallel/ |
D | test-whatwg-encoding-custom-textdecoder.js | 17 assert(TextDecoder); 22 const dec = new TextDecoder(i); 29 const dec = new TextDecoder(i); 40 const dec = new TextDecoder(i, { ignoreBOM: true }); 46 const dec = new TextDecoder(i, { ignoreBOM: true }); 57 const dec = new TextDecoder(i, { fatal: true }); 68 const dec = new TextDecoder(i, { fatal: true }); 74 () => new TextDecoder('utf-8', { fatal: true }), 84 const dec = new TextDecoder(undefined, null); 93 const dec = new TextDecoder('utf-16le'); [all …]
|
D | test-whatwg-encoding-custom-api-basics.js | 12 new TextDecoder(encoding).decode(new Uint8Array(bytes)), 15 new TextDecoder(encoding).decode(new Uint8Array(bytes).buffer), 36 new TextDecoder(encoding).decode(new Uint8Array(bytes)), 39 new TextDecoder(encoding).decode(new Uint8Array(bytes).buffer),
|
D | test-whatwg-encoding-custom-textdecoder-api-invalid-label.js | 18 () => new TextDecoder(`${ws}${i}`), 26 () => new TextDecoder(`${i}${ws}`), 34 () => new TextDecoder(`${ws}${i}${ws}`),
|
D | test-whatwg-encoding-custom-textdecoder-ignorebom.js | 23 let decoder = new TextDecoder(testCase.encoding, { ignoreBOM: true }); 26 decoder = new TextDecoder(testCase.encoding, { ignoreBOM: false }); 28 decoder = new TextDecoder(testCase.encoding);
|
D | test-global-encoder.js | 7 strictEqual(TextDecoder, util.TextDecoder);
|
D | test-whatwg-encoding-custom-fatal-streaming.js | 21 const decoder = new TextDecoder(testCase.encoding, { fatal: true }); 34 const decoder = new TextDecoder('utf-16le', { fatal: true });
|
D | test-whatwg-encoding-custom-textdecoder-invalid-arg.js | 13 new TextDecoder(undefined, null).decode(invalidInputType);
|
/third_party/node/test/fixtures/wpt/encoding/ |
D | textdecoder-ignorebom.any.js | 12 var decoder = new TextDecoder(testCase.encoding, {ignoreBOM: true}); 19 decoder = new TextDecoder(testCase.encoding, {ignoreBOM: false}); 25 decoder = new TextDecoder(testCase.encoding); 34 …assert_true('ignoreBOM' in new TextDecoder(), 'The ignoreBOM attribute should exist on TextDecoder… 35 …assert_equals(typeof new TextDecoder().ignoreBOM, 'boolean', 'The type of the ignoreBOM attribute… 36 assert_false(new TextDecoder().ignoreBOM, 'The ignoreBOM attribute should default to false.'); 37 …assert_true(new TextDecoder('utf-8', {ignoreBOM: true}).ignoreBOM, 'The ignoreBOM attribute can be…
|
D | textdecoder-labels.any.js | 13 new TextDecoder(label).encoding, textDecoderName, 16 new TextDecoder(label.toUpperCase()).encoding, textDecoderName, 20 new TextDecoder(ws + label).encoding, textDecoderName, 23 new TextDecoder(label + ws).encoding, textDecoderName, 26 new TextDecoder(ws + label + ws).encoding, textDecoderName,
|
D | api-basics.any.js | 5 assert_equals((new TextDecoder).encoding, 'utf-8', 'default encoding is utf-8'); 16 assert_equals(new TextDecoder(encoding).decode(new Uint8Array(bytes)), string); 17 assert_equals(new TextDecoder(encoding).decode(new Uint8Array(bytes).buffer), string); 32 assert_equals(new TextDecoder(encoding).decode(new Uint8Array(bytes)), string); 33 assert_equals(new TextDecoder(encoding).decode(new Uint8Array(bytes).buffer), string);
|
D | textdecoder-fatal.any.js | 55 new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.input)) 61 assert_true('fatal' in new TextDecoder(), 'The fatal attribute should exist on TextDecoder.'); 62 …assert_equals(typeof new TextDecoder().fatal, 'boolean', 'The type of the fatal attribute should … 63 assert_false(new TextDecoder().fatal, 'The fatal attribute should default to false.'); 64 …assert_true(new TextDecoder('utf-8', {fatal: true}).fatal, 'The fatal attribute can be set using a… 70 const decoder = new TextDecoder('utf-8', {fatal: true});
|
D | textdecoder-fatal-streaming.any.js | 11 var decoder = new TextDecoder(testCase.encoding, {fatal: true}); 16 new TextDecoder(testCase.encoding).decode(new Uint8Array([testCase.sequence])), 24 var decoder = new TextDecoder('utf-16le', {fatal: true});
|
D | textdecoder-utf16-surrogates.any.js | 38 assert_equals(new TextDecoder(t.encoding).decode(new Uint8Array(t.input)), t.expected); 42 new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.input))
|
D | textdecoder-fatal-single-byte.any.js | 41 new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array([i])); 47 …assert_equals(typeof new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array([i])), "stri…
|
D | idlharness.any.js | 11 TextDecoder: ['new TextDecoder()'] property
|
D | api-replacement-encodings.any.js | 10 assert_throws(new RangeError(), function() { new TextDecoder(label); });
|
D | textdecoder-copy.any.js | 6 decoder = new TextDecoder("utf-8")
|
D | textencoder-constructor-non-utf.any.js | 8 …assert_equals(new TextDecoder(encoding.name).encoding, encoding.name.toLowerCase()); // ASCII name…
|
D | api-invalid-label.any.js | 22 assert_throws(new RangeError(), function() { new TextDecoder(input); });
|
D | textencoder-utf16-surrogates.any.js | 39 var decoded = new TextDecoder().decode(encoded);
|
/third_party/node/lib/internal/ |
D | encoding.js | 367 const TextDecoder = constant 378 class TextDecoder { class 435 return TextDecoder; 452 class TextDecoder { class 528 return TextDecoder; 533 TextDecoder.prototype, 555 const constructor = getConstructorOf(this) || TextDecoder; 571 ObjectDefineProperties(TextDecoder.prototype, { 582 TextDecoder, property
|
D | blob.js | 23 const { TextDecoder } = require('internal/encoding'); 217 const dec = new TextDecoder();
|
/third_party/node/test/fixtures/wpt/interfaces/ |
D | encoding.idl | 22 interface TextDecoder { 27 TextDecoder includes TextDecoderCommon;
|
/third_party/flatbuffers/ts/flexbuffers/ |
D | flexbuffers-util.ts | 2 const decoder = new TextDecoder();
|
/third_party/node/lib/ |
D | util.js | 55 const { TextDecoder, TextEncoder } = require('internal/encoding'); 363 TextDecoder, property
|