Skip to content

Commit

Permalink
Editorial: account for SharedArrayBuffer change in Web IDL
Browse files Browse the repository at this point in the history
See whatwg/webidl#1311 for context.
  • Loading branch information
annevk committed Jun 14, 2023
1 parent 3721bec commit 47b14e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions encoding.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ dictionary TextDecodeOptions {
interface TextDecoder {
constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});

USVString decode(optional [AllowShared] BufferSource input, optional TextDecodeOptions options = {});
USVString decode(optional AllowSharedBufferSource input, optional TextDecodeOptions options = {});
};
TextDecoder includes TextDecoderCommon;
</pre>
Expand Down Expand Up @@ -1695,7 +1695,7 @@ TextDecoderStream includes GenericTransformStream;
<dt><code><var>decoder</var> . <a attribute for=GenericTransformStream>writable</a></code>
<dd>
<p>Returns a <a>writable stream</a> which accepts
<code>[<a extended-attribute>AllowShared</a>] <a typedef>BufferSource</a></code> chunks and runs
<code><a typedef>AllowSharedBufferSource</a></code> chunks and runs
them through <a for=TextDecoderCommon>encoding</a>'s <a for=/>decoder</a> before making them
available to {{GenericTransformStream/readable}}.

Expand Down Expand Up @@ -1758,7 +1758,7 @@ constructor steps are:
<ol>
<li><p>Let <var>bufferSource</var> be the result of
<a lt="converted to an IDL value">converting</a> <var>chunk</var> to an
<code>[<a extended-attribute>AllowShared</a>] <a typedef>BufferSource</a></code>.
<code><a typedef>AllowSharedBufferSource</a></code>.

<li>
<p><a>Push</a> a <a lt="get a copy of the buffer source">copy of</a> <var>bufferSource</var> to
Expand Down

0 comments on commit 47b14e3

Please sign in to comment.