Re: [whatwg/streams] Settle reader.[[closedPromise]] before performing close/error steps of read requests (#1102)

> Would it make sense for the promise helpers in the reference implementation to assert that the promise is still pending?

Yes, that would be good. Could you do it in this PR?

> We could do this only in the reference implementation, just to help catch bugs. Or would we also want to add normative asserts everywhere we resolve or reject a promise in the specification text?

I think we shouldn't make it normative in the specification text, because we've so far always found cases where we failed to preserve the invariant. @domenic may have a different opinion.

-- 
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/pull/1102#issuecomment-774031221

Received on Friday, 5 February 2021 13:25:28 UTC