Skip to content

Commit

Permalink
Align with IDL constructor changes
Browse files Browse the repository at this point in the history
Fixes #183.
  • Loading branch information
autokagami authored and annevk committed Sep 24, 2019
1 parent 8abcdaf commit 370ad80
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions encoding.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1143,9 +1143,10 @@ dictionary TextDecodeOptions {
boolean stream = false;
};

[Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {}),
Exposed=(Window,Worker)]
[Exposed=(Window,Worker)]
interface TextDecoder {
constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});

USVString decode(optional BufferSource input, optional TextDecodeOptions options = {});
};
TextDecoder includes TextDecoderCommon;
Expand Down Expand Up @@ -1297,9 +1298,10 @@ dictionary TextEncoderEncodeIntoResult {
unsigned long long written;
};

[Constructor,
Exposed=(Window,Worker)]
[Exposed=(Window,Worker)]
interface TextEncoder {
constructor();

[NewObject] Uint8Array encode(optional USVString input = "");
TextEncoderEncodeIntoResult encodeInto(USVString source, Uint8Array destination);
};
Expand Down Expand Up @@ -1477,9 +1479,9 @@ when invoked, must return this object's <a for=GenericTransformStream>transform<
<h3 id=interface-textdecoderstream>Interface {{TextDecoderStream}}</h3>

<pre class=idl>
[Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options),
Exposed=(Window,Worker)]
[Exposed=(Window,Worker)]
interface TextDecoderStream {
constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
};
TextDecoderStream includes TextDecoderCommon;
TextDecoderStream includes GenericTransformStream;
Expand Down Expand Up @@ -1657,9 +1659,9 @@ byteReadable
<h3 id=interface-textencoderstream>Interface {{TextEncoderStream}}</h3>

<pre class=idl>
[Constructor,
Exposed=(Window,Worker)]
[Exposed=(Window,Worker)]
interface TextEncoderStream {
constructor();
};
TextEncoderStream includes TextEncoderCommon;
TextEncoderStream includes GenericTransformStream;
Expand Down

0 comments on commit 370ad80

Please sign in to comment.