Home
last modified time | relevance | path

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

12

/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-global-encoder.js8 strictEqual(TextEncoder, util.TextEncoder);
Dtest-whatwg-encoding-custom-api-basics.js33 const encoded = new TextEncoder().encode(string);
Dtest-whatwg-encoding-custom-textdecoder.js175 const invalidThisArgs = [{}, [], true, 1, '', new TextEncoder()];
/third_party/node/test/fixtures/wpt/encoding/
DencodeInto.any.js83 encoder = new TextEncoder(),
128 …assert_throws(new TypeError(), () => new TextEncoder().encodeInto("", new view(new ArrayBuffer(0))…
133 assert_throws(new TypeError(), () => new TextEncoder().encodeInto("", new ArrayBuffer(10)));
139 let { read, written } = new TextEncoder().encodeInto("", view);
143 ({ read, written } = new TextEncoder().encodeInto("", view));
146 ({ 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.js321 class TextEncoder { class
351 constructor: ctor === null ? TextEncoder : ctor
360 TextEncoder.prototype, {
583 TextEncoder field
/third_party/node/test/fixtures/wpt/interfaces/
Dencoding.idl39 interface TextEncoder {
45 TextEncoder includes TextEncoderCommon;
/third_party/node/lib/
Dutil.js55 const { TextDecoder, TextEncoder } = require('internal/encoding');
364 TextEncoder, property
/third_party/node/doc/api/
Dglobals.md299 ## `TextEncoder`
306 The WHATWG `TextEncoder` class. See the [`TextEncoder`][] section.
341 [`TextEncoder`]: util.md#util_class_util_textencoder
Dutil.md1260 ## Class: `util.TextEncoder`
1269 An implementation of the [WHATWG Encoding Standard][] `TextEncoder` API. All
1270 instances of `TextEncoder` only support UTF-8 encoding.
1273 const encoder = new TextEncoder();
1277 The `TextEncoder` class is also available on the global object.
1299 const encoder = new TextEncoder();
1309 The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`.
/third_party/node/lib/internal/bootstrap/
Dnode.js133 TextEncoder, TextDecoder
136 exposeInterface(globalThis, 'TextEncoder', TextEncoder);
/third_party/protobuf/js/experimental/runtime/kernel/
Dtextencoding_test.js33 const textEncoder = new TextEncoder('utf-8');
Dreader_test.js241 if (typeof TextEncoder !== 'undefined') {
242 const textEncoder = new TextEncoder('utf-8');
/third_party/jsframework/runtime/main/extend/systemplugin/napi/
Dohos_util.js39 const TextEncoderClass = class TextEncoder { class
530 TextEncoder : TextEncoderClass, property
/third_party/typescript/tests/baselines/reference/
DglobalThisBlockscopedProperties.types67 …pto" | "SyncManager" | "Text" | "TextDecoder" | "TextDecoderStream" | "TextEncoder" | "TextEncoder…
/third_party/typescript/lib/
Dlib.webworker.d.ts3146 interface TextEncoder extends TextEncoderCommon { interface
3157 declare var TextEncoder: { variable
3158 prototype: TextEncoder;
3159 new(): TextEncoder;
Dlib.dom.d.ts15612 interface TextEncoder extends TextEncoderCommon { interface
15623 declare var TextEncoder: { variable
15624 prototype: TextEncoder;
15625 new(): TextEncoder;
/third_party/typescript/src/lib/
Dwebworker.generated.d.ts3126 interface TextEncoder extends TextEncoderCommon { interface
3137 declare var TextEncoder: { variable
3138 prototype: TextEncoder;
3139 new(): TextEncoder;

12