Home
last modified time | relevance | path

Searched refs:TextEncoder (Results 1 – 25 of 58) sorted by relevance

123

/third_party/node/test/parallel/
Dtest-whatwg-encoding-custom-interop.js17 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();
Dtest-webcrypto-sign-verify.js17 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();
Dtest-global-encoder.js8 strictEqual(TextEncoder, util.TextEncoder);
Dtest-buffer-isascii.js6 const { TextEncoder } = require('util');
8 const encoder = new TextEncoder();
Dtest-buffer-isutf8.js6 const { TextEncoder } = require('util');
8 const encoder = new TextEncoder();
Dtest-whatwg-webstreams-adapters-to-writablestream.js105 const ec = new TextEncoder();
126 const ec = new TextEncoder();
143 const ec = new TextEncoder();
Dtest-whatwg-webstreams-adapters-to-streamduplex.js76 const ec = new TextEncoder();
101 const ec = new TextEncoder();
120 const ec = new TextEncoder();
Dtest-whatwg-webstreams-adapters-to-streamreadable.js168 const ec = new TextEncoder();
186 const ec = new TextEncoder();
204 const ec = new TextEncoder();
Dtest-webcrypto-derivebits.js43 const ec = new TextEncoder();
75 const ec = new TextEncoder();
Dtest-webcrypto-derivekey.js52 const ec = new TextEncoder();
89 const ec = new TextEncoder();
Dtest-whatwg-encoding-custom-api-basics.js33 const encoded = new TextEncoder().encode(string);
/third_party/node/test/fixtures/wpt/encoding/
DencodeInto.any.js87 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));
Dapi-basics.any.js4 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);
Dtextencoder-utf16-surrogates.any.js38 var encoded = new TextEncoder().encode(t.input);
45 assert_equals(new TextEncoder().encode().length, 0, 'Should default to empty string');
Didlharness.any.js10 TextEncoder: ['new TextEncoder()'], property
Dtextencoder-constructor-non-utf.any.js13 assert_equals(new TextEncoder(encoding.name).encoding, 'utf-8');
Dapi-surrogates-utf8.any.js44 var encoded = new TextEncoder().encode(t.input);
/third_party/node/test/fixtures/wpt/FileAPI/blob/
DBlob-array-buffer.any.js6 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");
DBlob-text.any.js25 const input_arr = new TextEncoder().encode(non_unicode);
39 const input_arr = new TextEncoder().encode(non_unicode);
/third_party/node/lib/internal/
Dencoding.js329 class TextEncoder { class
359 constructor: ctor === null ? TextEncoder : ctor,
368 TextEncoder.prototype, {
613 TextEncoder, property
/third_party/node/test/fixtures/wpt/interfaces/
Dencoding.idl39 interface TextEncoder {
45 TextEncoder includes TextEncoderCommon;
/third_party/node/lib/internal/webstreams/
Dencoding.js13 TextEncoder,
58 this[kHandle] = new TextEncoder();
/third_party/node/lib/internal/bootstrap/
Dbrowser.js32 TextEncoder,
36 exposeInterface(globalThis, 'TextEncoder', TextEncoder);
/third_party/node/lib/
Dutil.js70 const { TextDecoder, TextEncoder } = require('internal/encoding');
395 TextEncoder, property
/third_party/node/benchmark/util/
Dtext-encoder.js13 const encoder = new TextEncoder();

123