You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
{aborted: false} is treated as valid AbortSignal but not in other runtimes #54962
>> AbortSignal.any([ { aborted: false }])
Uncaught TypeError: AbortSignal.any: Element of argument 1 does not implement interface AbortSignal.
<anonymous> debugger eval code:1
In Chrome:
> AbortSignal.any([ { aborted: false }])
VM176:1 Uncaught TypeError: Failed to execute 'any' on 'AbortSignal': Failed to convert value to 'AbortSignal'.
at <anonymous>:1:13
Activity
avivkeller commentedon Sep 16, 2024
Spec: https://dom.spec.whatwg.org/#create-a-dependent-abort-signal
avivkeller commentedon Sep 16, 2024
Can you provide the exact error given by other runtimes?
xwan99 commentedon Sep 16, 2024
In Firefox:
In Chrome:
benjamingr commentedon Sep 19, 2024
This was a deliberate design choice (to not brand check) in order to have better ecosystem compatibility.
Now that we've had AbortSignal for a few years it's fine to revisit
lib: validate signals with interface converter
lib: implement interface converter in webidl