File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2219,7 +2219,9 @@ The following abstract operations operate on {{ReadableStream}} instances at a h
2219
2219
* <dfn id="rs-pipeTo-finalize"><i>Finalize</i></dfn> : both forms of shutdown will eventually ask
2220
2220
to finalize, optionally with an error |error|, which means to perform the following steps:
2221
2221
1. Perform ! [$WritableStreamDefaultWriterRelease$] (|writer|).
2222
- 1. Perform ! [$ReadableStreamDefaultReaderRelease$] (|reader|).
2222
+ 1. If |reader| [=implements=] {{ReadableStreamBYOBReader}} , perform
2223
+ ! [$ReadableStreamBYOBReaderRelease$] (|reader|).
2224
+ 1. Otherwise, perform ! [$ReadableStreamDefaultReaderRelease$] (|reader|).
2223
2225
1. If |signal| is not undefined, [=AbortSignal/remove=] |abortAlgorithm| from |signal|.
2224
2226
1. If |error| was given, [=reject=] |promise| with |error|.
2225
2227
1. Otherwise, [=resolve=] |promise| with undefined.
You can’t perform that action at this time.
0 commit comments