Re: [whatwg/streams] Internal promises need to be handled before they reject (#1139)

This seems very similar to MattiasBuelens/web-streams-polyfill#8. But that was reported as a Node-specific issue, I didn't think this could also affect browsers. 🤔 

The "fix" back then was to first create a pending promise, then mark it as handled, then reject it. Hopefully we can handle this in a cleaner way for the specification. Maybe add a "create a an already-handled rejected promise" helper to Web IDL?

-- 
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/issues/1139#issuecomment-869202450

Received on Sunday, 27 June 2021 17:56:53 UTC