Re: [streams] Tidy up precondition checking in ErrorReadableStream (f6d7882)

Generated from code. Sorry it's not about strategy but about underlyingSource. For example,
- CallReadableStreamPull() calls ErrorReadableStream(stream, e) when pullingPromise is rejected. Since the underlyingSource already has the controller so it can do a bad thing that is to call controller.error() and also return a rejected promise. If this happens, we hit the `Assert: stream@[[state]] is "readable"` since controller.error() has already errored the stream.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/commit/f6d78821a8e4142cf8e9b6c42700020111bb17ed#commitcomment-10596033

Received on Tuesday, 7 April 2015 05:43:55 UTC