The user agent is allowed to use a default reader or a BYOB reader for the pipe in step 8, but we always call ReadableStreamDefaultReaderRelease in the finalize steps. This is incorrect: we should use the appropriate Release() abstract op corresponding to the chosen reader. This PR fixes that.
(Before #1168, we had a single ReadableStreamReaderGenericRelease that worked for both. So this was a small regression.)
The user agent is allowed to use a default reader or a BYOB reader for the pipe in step 8, but we always call
ReadableStreamDefaultReaderRelease
in the finalize steps. This is incorrect: we should use the appropriateRelease()
abstract op corresponding to the chosen reader. This PR fixes that.(Before #1168, we had a single
ReadableStreamReaderGenericRelease
that worked for both. So this was a small regression.)Preview | Diff