- From: Mattias Buelens <notifications@github.com>
- Date: Tue, 12 Jan 2021 14:42:42 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 12 January 2021 22:42:54 UTC
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