-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
web-standardsIssues and PRs related to Web APIsIssues and PRs related to Web APIs
Description
Version
v22.7.0
Platform
n/a
Subsystem
No response
What steps will reproduce the bug?
var it = { *[Symbol.iterator] () { return AbortSignal.timeout(100000) } }
AbortSignal.any(it)
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
It works
What do you see instead?
It throws an error
Additional information
Take a look at how undici handles sequences https://github.com/nodejs/undici/blob/3f1b57d28fc084b1ac712a7ca844b1b3fef77be8/lib/web/fetch/webidl.js#L272
Webidl: https://webidl.spec.whatwg.org/#es-sequence
Notice how the webidl for AbortSignal.any says sequence, not array:
[NewObject] static AbortSignal _any(sequence<AbortSignal> signals);
Metadata
Metadata
Assignees
Labels
web-standardsIssues and PRs related to Web APIsIssues and PRs related to Web APIs