File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1878,11 +1878,11 @@ are optional, run these steps:
1878
1878
<ol>
1879
1879
<li><p> Let <var> init</var> be a new object.
1880
1880
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> () .
1883
1883
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> ) .
1886
1886
1887
1887
<li><p> Let <var> stream</var> be the result of calling the initial value of {{ReadableStream}} as
1888
1888
constructor with <var> init</var> and <var> strategy</var> if given.
You can’t perform that action at this time.
0 commit comments