Update web-platform-tests to revision b202bbb5aa0d235b22bac11fe902eab1094ef9d2

This commit is contained in:
WPT Sync Bot 2018-03-13 21:24:22 -04:00
parent 9a6c96808b
commit e90dd8bc6b
43 changed files with 669 additions and 286 deletions

View file

@ -0,0 +1,24 @@
dictionary TextDecoderOptions {
boolean fatal = false;
boolean ignoreBOM = false;
};
dictionary TextDecodeOptions {
boolean stream = false;
};
[Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options),
Exposed=(Window,Worker)]
interface TextDecoder {
readonly attribute DOMString encoding;
readonly attribute boolean fatal;
readonly attribute boolean ignoreBOM;
USVString decode(optional BufferSource input, optional TextDecodeOptions options);
};
[Constructor,
Exposed=(Window,Worker)]
interface TextEncoder {
readonly attribute DOMString encoding;
[NewObject] Uint8Array encode(optional USVString input = "");
};