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

> So, it means that rs.ready should return the same instance until we're asked to replace [[readyPromise]] on e.g. "readable" to "waiting" transition?

Yeah, definitely.

> How about the result of cancel() call on a "closed" or "errored" stream? It's now specified to return [[closedPromise]] than creating a new one resolved/rejected for efficiency. Do you think it also should be a requirement?

We should make sure to normatively specify and test one way or another. But since it's a method instead of property I would be OK either way. I think the way it is now makes some sense but I'd be OK either way. We just need to make sure all implementations agree.

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

Received on Tuesday, 20 January 2015 04:48:49 UTC