@@ -2101,7 +2101,7 @@ The following abstract operations operate on {{ReadableStream}} instances at a h
2101
2101
1. Let |promise| be [=a new promise=] .
2102
2102
1. If |signal| is not undefined,
2103
2103
1. Let |abortAlgorithm| be the following steps:
2104
- 1. Let |error| be a new " {{AbortError}} " {{DOMException}} .
2104
+ 1. Let |error| be |signal|'s [=AbortSignal/abort reason=] .
2105
2105
1. Let |actions| be an empty [=ordered set=] .
2106
2106
1. If |preventAbort| is false, [=set/append=] the following action to |actions|:
2107
2107
1. If |dest|.[=WritableStream/[[state]]=] is "`writable`", return !
@@ -2113,8 +2113,7 @@ The following abstract operations operate on {{ReadableStream}} instances at a h
2113
2113
1. Otherwise, return [=a promise resolved with=] undefined.
2114
2114
1. [=Shutdown with an action=] consisting of [=getting a promise to wait for all=] of the actions
2115
2115
in |actions|, and with |error|.
2116
- 1. If |signal|'s [=AbortSignal/aborted flag=] is set, perform |abortAlgorithm| and return
2117
- |promise|.
2116
+ 1. If |signal| is [=AbortSignal/aborted=] , perform |abortAlgorithm| and return |promise|.
2118
2117
1. [=AbortSignal/Add=] |abortAlgorithm| to |signal|.
2119
2118
1. [=In parallel=] <span class="XXX"> but not really; see <a
2120
2119
href="https://github.com/whatwg/streams/issues/905"> #905</a></span> , using |reader| and
@@ -4518,7 +4517,8 @@ The following abstract operations operate on {{WritableStream}} instances at a h
4518
4517
1. If |stream|.[=WritableStream/[[state]]=] is "`closed`" or "`errored`", return
4519
4518
[=a promise resolved with=] undefined.
4520
4519
1. [=Signal abort=] on
4521
- |stream|.[=WritableStream/[[controller]]=] .[=WritableStreamDefaultController/[[signal]]=] .
4520
+ |stream|.[=WritableStream/[[controller]]=] .[=WritableStreamDefaultController/[[signal]]=] with
4521
+ |reason|.
4522
4522
1. Let |state| be |stream|.[=WritableStream/[[state]]=] .
4523
4523
1. If |state| is "`closed`" or "`errored`", return [=a promise resolved with=] undefined.
4524
4524
<p class="note"> We re-check the state because [=signaling abort=] runs author code and that might
0 commit comments