Re: [whatwg/streams] ReadableStreamClose with async iterator and pending read requests errors (#1100)

I encountered a similar issue in MattiasBuelens/web-streams-polyfill#66. I solved it in the same way: ensure that resolving/rejecting an already settled promise is a no-op (and does not throw). It's a bit surprising, but I understand the reasoning.

I also [added a regression test](https://github.com/MattiasBuelens/web-streams-polyfill/blob/094c3df674e783d37c5e4728e56bcf1a43b1f364/test/unit/readable-stream/regression.spec.js) for this case. If you're interested, I can look into upstreaming it to WPT? 🙂 

-- 
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/1100#issuecomment-759083915

Received on Tuesday, 12 January 2021 22:42:54 UTC