Throws an AbortSignal's reason if the signal is aborted. This convenience method can be used by signal-handling functions to check a signal's abort status and propagate the abort reason, e.g. after async operations that might change a signal's state.
AbortSignal-handling functions often need to check the signal's status and propagate the error if the signal has been aborted. AbortSignal.throwIfAborted provides a convenient and consistent way to do this.
No risk; this feature is an ergonomic improvement for AbortSignal users.
The feature has already been implemented in both Safari and Firefox, but it would benefit from a polyfill for use in older browser versions.
None.
Basic tooling only, i.e. autocomplete support for the new AbortSignal method will be provided.
No milestones specified