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

Streams: fix tests for abort reason #31738

Merged

Conversation

MattiasBuelens
Copy link
Contributor

The tests assume that controller.abort(null) behaves like controller.abort(undefined) and that signal.reason should become an AbortError. However, that's not what the spec text says: signal.reason should become null instead.

See whatwg/streams#1189 for context.

@MattiasBuelens
Copy link
Contributor Author

I added a test for AbortController.abort(null) itself, so we don't run into this again if we start using this in some other spec. 😁

@domenic domenic merged commit 71c864f into web-platform-tests:master Nov 24, 2021
@MattiasBuelens MattiasBuelens deleted the streams-fix-abort-reason branch November 24, 2021 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants