[whatwg/streams] [WritableStream] Shouldn't the state after writer.abort() be closed? (#464)

For ReadableStream, `reader.cancel(reason)` passes `reason` to the underlying source via `source.cancel()`, but we decided not to have it set to storedError and closed but have the stream just say it's cleanly closed.

On the other hand, `writer.abort()` is specified to set storedError and closed to return the passed reason.

IIRC, this was required long time ago for aborting pipeTo and having the source cancelled as if the destination is errored with the reason passed to the abort() call. It's now impossible given the writer/reader structure.

I've been feeling a bit uncomfortable with the error mirroring (both to sink and WritableStream I/F). If it's true that we no longer have any justification for it, I'd like to revisit it and consider removal.

---
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/464

Received on Tuesday, 31 May 2016 09:00:51 UTC