Skip to content

Commit

Permalink
Fix further conversion to owning
Browse files Browse the repository at this point in the history
  • Loading branch information
youennf committed Apr 13, 2023
1 parent cd34d11 commit 557edc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -651,16 +651,16 @@ enum ReadableStreamType { "bytes", "owning" };
<p>For an example of how to set up a readable byte stream, including using the different
controller interface, see [[#example-rbs-push]].

<p>Can be set to "<dfn enum-value for="ReadableStreamType">transfer</dfn>" to signal that the
<p>Can be set to "<dfn enum-value for="ReadableStreamType">owning</dfn>" to signal that the
constructed {{ReadableStream}} will own chunks (via transfer or serialization) before enqueuing them.
This ensures that enqueued chunks are not mutable by the source.
Transferred or serialized chunks may have <dfn>closing steps</dfn> which are executed if
enqueued chunks are dequeued without being provided to the application, for instance when
a {{ReadableStream}} is errored.
</p>

<p>Setting any value other than "{{ReadableStreamType/bytes}}" or undefined will cause the
{{ReadableStream()}} constructor to throw an exception.
<p>Setting any value other than "{{ReadableStreamType/bytes}}", "{{ReadableStreamType/owning}}"
or undefined will cause the {{ReadableStream()}} constructor to throw an exception.

<dt><dfn dict-member for="UnderlyingSource"
lt="autoAllocateChunkSize"><code>autoAllocateChunkSize</code></dfn> (byte streams only)</dt>
Expand Down Expand Up @@ -1581,7 +1581,7 @@ the following table:
</div>

<div algorithm>
The <dfn id="ref-for-rs-default-controller-enqueue" method
The <dfn id="rs-default-controller-enqueue" method
for="ReadableStreamDefaultController">enqueue(|chunk|, |options|)</dfn> method steps are:

1. Let |transferList| be |options|["transfer"].
Expand Down

0 comments on commit 557edc9

Please sign in to comment.