aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/TextDecoder.webidl
diff options
context:
space:
mode:
authorChristian Poveda <christianpoveda@protonmail.com>2018-03-24 08:58:23 -0500
committerChristian Poveda <christianpoveda@protonmail.com>2018-03-24 16:26:44 -0500
commit2c47e7e1db2d31e6f05b0fbe83a73e7d2dd94595 (patch)
tree874bc49f0e1efb87d68ec18173a7ed6547f83fd0 /components/script/dom/webidls/TextDecoder.webidl
parente8fdc677f440919507209ed42d0ea042c700042c (diff)
downloadservo-2c47e7e1db2d31e6f05b0fbe83a73e7d2dd94595.tar.gz
servo-2c47e7e1db2d31e6f05b0fbe83a73e7d2dd94595.zip
TextDecoder's Decode now receives a BufferSource as input
Diffstat (limited to 'components/script/dom/webidls/TextDecoder.webidl')
-rw-r--r--components/script/dom/webidls/TextDecoder.webidl11
1 files changed, 7 insertions, 4 deletions
diff --git a/components/script/dom/webidls/TextDecoder.webidl b/components/script/dom/webidls/TextDecoder.webidl
index e7292ed3061..b511fec3d79 100644
--- a/components/script/dom/webidls/TextDecoder.webidl
+++ b/components/script/dom/webidls/TextDecoder.webidl
@@ -5,15 +5,18 @@
// https://encoding.spec.whatwg.org/#interface-textdecoder
dictionary TextDecoderOptions {
boolean fatal = false;
- //boolean ignoreBOM = 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);
+ // readonly attribute boolean ignoreBOM;
[Throws]
- USVString decode(optional object input);
+ USVString decode(optional BufferSource input, optional TextDecodeOptions options);
};