| /third_party/node/test/parallel/ |
| D | test-whatwg-encoding-custom-interop.js | 17 assert(TextEncoder); 21 const enc = new TextEncoder(); 29 const enc = new TextEncoder(); 35 const enc = new TextEncoder(); 41 const inspectFn = TextEncoder.prototype[inspect]; 42 const encodeFn = TextEncoder.prototype.encode; 44 Object.getOwnPropertyDescriptor(TextEncoder.prototype, 'encoding').get; 46 const instance = new TextEncoder();
|
| D | test-webcrypto-sign-verify.js | 17 const ec = new TextEncoder(); 40 const ec = new TextEncoder(); 65 const ec = new TextEncoder(); 88 const ec = new TextEncoder(); 111 const ec = new TextEncoder(); 131 const ec = new TextEncoder();
|
| D | test-global-encoder.js | 8 strictEqual(TextEncoder, util.TextEncoder);
|
| D | test-buffer-isascii.js | 6 const { TextEncoder } = require('util'); 8 const encoder = new TextEncoder();
|
| D | test-buffer-isutf8.js | 6 const { TextEncoder } = require('util'); 8 const encoder = new TextEncoder();
|
| D | test-whatwg-webstreams-adapters-to-writablestream.js | 105 const ec = new TextEncoder(); 126 const ec = new TextEncoder(); 143 const ec = new TextEncoder();
|
| D | test-whatwg-webstreams-adapters-to-streamduplex.js | 76 const ec = new TextEncoder(); 101 const ec = new TextEncoder(); 120 const ec = new TextEncoder();
|
| D | test-whatwg-webstreams-adapters-to-streamreadable.js | 168 const ec = new TextEncoder(); 186 const ec = new TextEncoder(); 204 const ec = new TextEncoder();
|
| D | test-webcrypto-derivebits.js | 43 const ec = new TextEncoder(); 75 const ec = new TextEncoder();
|
| D | test-webcrypto-derivekey.js | 52 const ec = new TextEncoder(); 89 const ec = new TextEncoder();
|
| D | test-whatwg-encoding-custom-api-basics.js | 33 const encoded = new TextEncoder().encode(string);
|
| /third_party/node/test/fixtures/wpt/encoding/ |
| D | encodeInto.any.js | 87 const encoder = new TextEncoder(); 137 assert_throws_js(TypeError, () => new TextEncoder().encodeInto("", viewInstance)); 144 …assert_throws_js(TypeError, () => new TextEncoder().encodeInto("", createBuffer(arrayBufferOrShare… 151 let { read, written } = new TextEncoder().encodeInto("", view); 155 ({ read, written } = new TextEncoder().encodeInto("", view)); 158 ({ read, written } = new TextEncoder().encodeInto("test", view));
|
| D | api-basics.any.js | 4 assert_equals((new TextEncoder).encoding, 'utf-8', 'default encoding is utf-8'); 9 assert_array_equals(new TextEncoder().encode(), [], 'input default should be empty string') 10 …assert_array_equals(new TextEncoder().encode(undefined), [], 'input default should be empty string… 30 var encoded = new TextEncoder().encode(string);
|
| D | textencoder-utf16-surrogates.any.js | 38 var encoded = new TextEncoder().encode(t.input); 45 assert_equals(new TextEncoder().encode().length, 0, 'Should default to empty string');
|
| D | idlharness.any.js | 10 TextEncoder: ['new TextEncoder()'], property
|
| D | textencoder-constructor-non-utf.any.js | 13 assert_equals(new TextEncoder(encoding.name).encoding, 'utf-8');
|
| D | api-surrogates-utf8.any.js | 44 var encoded = new TextEncoder().encode(t.input);
|
| /third_party/node/test/fixtures/wpt/FileAPI/blob/ |
| D | Blob-array-buffer.any.js | 6 const input_arr = new TextEncoder().encode("PASS"); 14 const input_arr = new TextEncoder().encode(""); 22 const input_arr = new TextEncoder().encode("\u08B8\u000a"); 37 const input_arr = new TextEncoder().encode("PASS");
|
| D | Blob-text.any.js | 25 const input_arr = new TextEncoder().encode(non_unicode); 39 const input_arr = new TextEncoder().encode(non_unicode);
|
| /third_party/node/lib/internal/ |
| D | encoding.js | 329 class TextEncoder { class 359 constructor: ctor === null ? TextEncoder : ctor, 368 TextEncoder.prototype, { 613 TextEncoder, property
|
| /third_party/node/test/fixtures/wpt/interfaces/ |
| D | encoding.idl | 39 interface TextEncoder { 45 TextEncoder includes TextEncoderCommon;
|
| /third_party/node/lib/internal/webstreams/ |
| D | encoding.js | 13 TextEncoder, 58 this[kHandle] = new TextEncoder();
|
| /third_party/node/lib/internal/bootstrap/ |
| D | browser.js | 32 TextEncoder, 36 exposeInterface(globalThis, 'TextEncoder', TextEncoder);
|
| /third_party/node/lib/ |
| D | util.js | 70 const { TextDecoder, TextEncoder } = require('internal/encoding'); 395 TextEncoder, property
|
| /third_party/node/benchmark/util/ |
| D | text-encoder.js | 13 const encoder = new TextEncoder();
|