-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Tests for abortSignal.throwIfAborted(); #31947
Conversation
There was a problem hiding this 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?
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
There was a problem hiding this 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.
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. |
Added the additional primitive check |
Refs: whatwg/dom#1034