Skip to content

Commit

Permalink
Expose AbortSignal.timeout on all globals
Browse files Browse the repository at this point in the history
Delete the Exposed attribute from AbortSignal.timeout, letting it
inherit [Exposed=*] from AbortSignal.

Cf. whatwg/html#9893 where other timers are
being exposed in ShadowRealm global contexts.
  • Loading branch information
ptomato committed Feb 7, 2024
1 parent e1c9b00 commit 789e223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,7 @@ to <a for=AbortController>signal abort</a> on <a>this</a> with <var>reason</var>
[Exposed=*]
interface AbortSignal : EventTarget {
[NewObject] static AbortSignal abort(optional any reason);
[Exposed=(Window,Worker), NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds);
[NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds);
[NewObject] static AbortSignal _any(sequence&lt;AbortSignal> signals);

readonly attribute boolean aborted;
Expand Down

0 comments on commit 789e223

Please sign in to comment.