Re: [streams] Requirement on promises equality (#266)

> The other question is what we want to do for methods. We could make them return fresh promises each time.

`cancel(reason)` being called during `"closed"` or `"errored"` is just a mistake. I don't care whether it would return something stable or not.

Same about `ws.abort(reason)` on `"closed"` or `"errored"` WritableStream, and `ws.close()` on an `"errored"` WritableStream, and `ws.write()` on an `"errored"` WritableStream.

IIRC, I've been thinking that they should just return a promise rejected with a TypeError indicating invalid state error. Sorry if I'm missing something discussed in the past.

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

Received on Tuesday, 10 February 2015 15:19:11 UTC