Skip to content

Add AbortSignal.any() IDL entry and corresponding tests#92

Open
vardhan30016 wants to merge 1 commit intofreeman-jiang:mainfrom
vardhan30016:add-contributing-section
Open

Add AbortSignal.any() IDL entry and corresponding tests#92
vardhan30016 wants to merge 1 commit intofreeman-jiang:mainfrom
vardhan30016:add-contributing-section

Conversation

@vardhan30016
Copy link

Summary

This PR adds the missing AbortSignal.any() static method to the Web IDL definitions
and introduces basic tests to verify correct behavior according to the specification.

Changes

  • Updated interfaces/dom.idl to include:
    static AbortSignal any(sequence<AbortSignal> signals);
  • Added new test file: dom/abort/abort-signal-any.any.js
  • Tests verify:
    • AbortSignal.any() returns a new AbortSignal
    • Combined signal aborts when any input signal aborts
    • TypeError is thrown when invalid items are passed

Why

The AbortSignal.any() method exists in the spec and in browser implementations,
but the Web Platform Tests repo did not yet include IDL coverage or functional tests.
This PR brings WPT closer to spec completeness.

Notes

  • Tests are minimal and follow the existing WPT style.
  • Happy to adjust file location or test structure if maintainers suggest improvements.

@vercel
Copy link

vercel bot commented Nov 13, 2025

@vardhan30016 is attempting to deploy a commit to the freemanjiang's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vardhan30016
Copy link
Author

Hi @freeman-jiang 👋

Just following up on this PR — please let me know if any changes are needed.
The Vercel deploy check fails only because I’m not part of the team, but the code and tests
themselves are clean and merge-ready.

Happy to update anything you’d like. Thanks for maintaining this project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant