Re: [whatwg/streams] What pipeTo does when both streams are closed (#647)

ricea commented on this pull request.



> @@ -648,23 +665,18 @@ ReadableStream(<var>underlyingSource</var> = {}, { <var>size</var>, <var>highWat
        initiate further reads from _reader_ or writes to _writer_. (Ongoing reads and writes may finish.) In particular,
        the user agent must check the below conditions on *this*.[[state]] and _dest_.[[state]] before performing any
        reads or writes, since they might lead to immediate shutdown.

That wasn't quite right. We also need to detect readable "ERRORED" and "CLOSED" while we are waiting for backpressure to go away.

-- 
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/pull/647

Received on Friday, 13 January 2017 12:20:26 UTC