[whatwg/streams] Returning after performing error steps in ReadableStreamBYOBReaderRead (#1091)

While investigating a WPT failure, I found that if we don't return after this
> If stream.[[state]] is "errored", perform readIntoRequest’s error steps given stream.[[storedError]].

in [ReadableStreamBYOBReaderRead()](https://streams.spec.whatwg.org/commit-snapshots/41a968974c91e05b20738f77d0b2731ec7391e92/#readable-stream-byob-reader-read) we hit the second assert in [AddReadIntoRequest()](https://streams.spec.whatwg.org/commit-snapshots/41a968974c91e05b20738f77d0b2731ec7391e92/#readable-stream-add-read-into-request)

> Assert: stream.[[state]] is "readable" or "closed".

Just wondering should we be returning after performing the error steps then, or is there another behaviour that is expected here?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1091

Received on Tuesday, 1 December 2020 07:35:37 UTC