1[Exposed=(Window,Worker)]
2interface TextEncoder {
3 constructor();
4
5 [NewObject] Uint8Array encode(optional USVString input = "");
6 // TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
7
8 readonly attribute DOMString encoding;
9};