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

Tests for abortSignal.throwIfAborted(); #31947

Conversation

jasnell
Copy link
Contributor

@jasnell jasnell commented Dec 7, 2021

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also add a test with a primitive value as reason?

dom/abort/event.any.js Outdated Show resolved Hide resolved
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this file is no longer just about the event, so really should be split up into multiple files, but that's a preexisting issue so let's merge this first and then split up or rename later if we care.

@domenic
Copy link
Member

domenic commented Dec 8, 2021

Oh, I missed @annevk's suggestion to do a primitive value as the reason. I don't think it's really necessary but I lean toward more coverage rather than less so let's do it, before we merge.

@jasnell
Copy link
Contributor Author

jasnell commented Dec 8, 2021

Added the additional primitive check

@domenic domenic merged commit b03df35 into web-platform-tests:master Dec 8, 2021
annevk pushed a commit to whatwg/dom that referenced this pull request Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants