Commit 75a80a8 1 parent 6ce0ff0 commit 75a80a8 Copy full SHA for 75a80a8
File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -764,8 +764,9 @@ option. If {{UnderlyingSource/type}} is set to undefined (including via omission
764
764
resulting branches; a composite cancellation reason will then be propagated to the stream's
765
765
[=underlying source=] .
766
766
767
- <p> Note that the [=chunks=] seen in each branch will be the same object. If the chunks are not
768
- immutable, this could allow interference between the two branches.
767
+ <p> If this stream is a [=readable byte stream=] , then each branch will receive its own copy of
768
+ each [=chunk=] . If not, then the chunks seen in each branch will be the same object.
769
+ If the chunks are not immutable, this could allow interference between the two branches.
769
770
</dl>
770
771
771
772
<div algorithm>
@@ -2215,6 +2216,9 @@ create them does not matter.
2215
2216
objects|transferring=] their [=chunks=] . However, it does introduce a noticeable asymmetry between
2216
2217
the two branches, and limits the possible [=chunks=] to serializable ones. [[!HTML]]
2217
2218
2219
+ If |stream| is a [=readable byte stream=] , then |cloneForBranch2| is ignored and chunks are cloned
2220
+ unconditionally.
2221
+
2218
2222
<p class="note"> In this standard ReadableStreamTee is always called with |cloneForBranch2| set to
2219
2223
false; other specifications pass true via the [=ReadableStream/tee=] wrapper algorithm.
2220
2224
You can’t perform that action at this time.
0 commit comments