Skip to content

Commit 46e1be1

Browse files
committed
Be clearer about the underlying source of a constructed ReadableStream.
1 parent b3492ec commit 46e1be1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fetch.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1878,11 +1878,11 @@ are optional, run these steps:
18781878
<ol>
18791879
<li><p>Let <var>init</var> be a new object.
18801880

1881-
<li><p>Set <var>init</var>["pull"] to a function that runs <var>pull</var> if <var>pull</var> is
1882-
given.
1881+
<li><p>If <var>pull</var> is given, set <var>init</var>["pull"] to a function that returns
1882+
<var>pull</var>().
18831883

1884-
<li><p>Set <var>init</var>["cancel"] to a function that runs <var>cancel</var> if
1885-
<var>cancel</var> is given.
1884+
<li><p>If <var>cancel</var> is given, set <var>init</var>["cancel"] to a function taking a
1885+
<var>reason</var> that returns <var>cancel</var>(<var>reason</var>).
18861886

18871887
<li><p>Let <var>stream</var> be the result of calling the initial value of {{ReadableStream}} as
18881888
constructor with <var>init</var> and <var>strategy</var> if given.

0 commit comments

Comments
 (0)