| Index: modules/encoding/TextEncoder.idl
|
| diff --git a/modules/encoding/TextEncoder.idl b/modules/encoding/TextEncoder.idl
|
| index dc86fef21bf7e7c28b73df77962e9c24168adc42..7e284d5efb7e68a4179390ca83e88c377e90cee3 100644
|
| --- a/modules/encoding/TextEncoder.idl
|
| +++ b/modules/encoding/TextEncoder.idl
|
| @@ -30,12 +30,12 @@
|
|
|
| [
|
| RuntimeEnabled=EncodingAPI,
|
| - Exposed=Window&Worker,
|
| - Constructor(optional DOMString utfLabel = null),
|
| + Exposed=(Window,Worker),
|
| + Constructor(optional DOMString utfLabel = "utf-8"),
|
| RaisesException=Constructor,
|
| GarbageCollected,
|
| MeasureAs=TextEncoderConstructor
|
| ] interface TextEncoder {
|
| readonly attribute DOMString encoding;
|
| - [MeasureAs=TextEncoderEncode] Uint8Array encode(optional ScalarValueString input = null, optional Dictionary options);
|
| + [MeasureAs=TextEncoderEncode] Uint8Array encode(optional ScalarValueString input = "");
|
| };
|
|
|