Re: [streams] Make .ready fulfill-only? (#245)

> mandatory to interact with the .closed promise

Right. We can also do that at `// uh oh how do I get the error object? :(`. Current `ReadableStream.prototype.pipeTo()` does that in `doPipe()`.

```
   dest.ready.catch(cancelSource);
```

How does this method look to you?

An extra microtask is required to retrieve the exception. We can expose storedError for synchronous read but it seems overkilling.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/245#issuecomment-64512560

Received on Wednesday, 26 November 2014 04:10:40 UTC