Skip to content

Commit 018ac19

Browse files
committed
Fully read's processBodyError argument needs to take an exception
Fixes #1636.
1 parent 625897d commit 018ac19

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

fetch.bs

+6-3
Original file line numberDiff line numberDiff line change
@@ -1514,7 +1514,8 @@ must be an algorithm accepting an exception.
15141514
<var>processBody</var>, an algorithm <var>processBodyError</var>, and an optional null,
15151515
<a for=/>parallel queue</a>, or <a for=/>global object</a> <var>taskDestination</var> (default
15161516
null), run these steps. <var>processBody</var> must be an algorithm accepting a
1517-
<a for=/>byte sequence</a>. <var>processBodyError</var> must be an algorithm accepting no arguments.
1517+
<a for=/>byte sequence</a>. <var>processBodyError</var> must be an algorithm optionally accepting an
1518+
<a for=/>exception</a>.
15181519

15191520
<ol>
15201521
<li><p>If <var>taskDestination</var> is null, then set <var>taskDestination</var> to the result of
@@ -1524,8 +1525,9 @@ null), run these steps. <var>processBody</var> must be an algorithm accepting a
15241525
<a>queue a fetch task</a> to run <var>processBody</var> given <var>bytes</var>, with
15251526
<var>taskDestination</var>.
15261527

1527-
<li><p>Let <var>errorSteps</var> be to <a>queue a fetch task</a> to run
1528-
<var>processBodyError</var>, with <var>taskDestination</var>.
1528+
<li><p>Let <var>errorSteps</var> optionally given an <a for=/>exception</a> <var>exception</var> be
1529+
to <a>queue a fetch task</a> to run <var>processBodyError</var> given <var>exception</var>, with
1530+
<var>taskDestination</var>.
15291531

15301532
<li><p>Let <var>reader</var> be the result of <a for=ReadableStream>getting a reader</a> for
15311533
<var>body</var>'s <a for=body>stream</a>. If that threw an exception, then run
@@ -9084,6 +9086,7 @@ Rondinelly,
90849086
Rory Hewitt,
90859087
Ross A. Baker,
90869088
Ryan Sleevi,
9089+
Sam Atkins,
90879090
Samy Kamkar,
90889091
Sébastien Cevey,
90899092
Sendil Kumar N,

0 commit comments

Comments
 (0)