Implement AbortSignal static abort(reason) (#38746)

Implement AbortSignal static abort(reason)

part of #36936

---------

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
Taym Haddadi 2025-08-18 23:32:39 +02:00 committed by GitHub
parent 25fea1e086
commit c4d2b63ef1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 32 additions and 35 deletions

View file

@ -6,6 +6,7 @@
[Exposed=*, Pref="dom_abort_controller_enabled"]
interface AbortSignal : EventTarget {
[NewObject] static AbortSignal abort(optional any reason);
readonly attribute boolean aborted;
readonly attribute any reason;
undefined throwIfAborted();