Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pipe not aborting when both preventAbort and preventCancel are set #31

Merged

Conversation

MattiasBuelens
Copy link
Owner

There was a bug in the specification for "wait for all" (w3ctag/promises-guide#58), which also ended up in the streams reference implementation and hence this polyfill. See whatwg/streams#1006 for details.

I initially ported the fix of whatwg/streams#1006 as-is to the polyfill, but then I realized that we might as well use the native Promise.all to implement the "wait for all" helper. That simplifies the code quite a bit. 🙂

@MattiasBuelens MattiasBuelens added bug domain: compliance Issues related to compliance with the streams standard labels Jul 29, 2019
@MattiasBuelens MattiasBuelens merged commit 9f8028f into master Jul 29, 2019
@MattiasBuelens MattiasBuelens deleted the fix-pipe-abort-with-preventcancel-and-preventabort branch July 29, 2019 22:39
@MattiasBuelens MattiasBuelens added this to the v2.0.4 milestone Aug 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug domain: compliance Issues related to compliance with the streams standard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant