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
> var it = { *[Symbol.iterator] () { return AbortSignal.timeout(100000) } }undefined
> AbortSignal.any(it)Uncaught:TypeError [ERR_INVALID_ARG_TYPE]: The "signals" argument must be an instance of Array. Received an instance of Object at validateAbortSignalArray (node:internal/validators:356:3) at AbortSignal.any (node:internal/abort_controller:228:5) { code: 'ERR_INVALID_ARG_TYPE'
Version
v22.7.0
Platform
Subsystem
No response
What steps will reproduce the bug?
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:
The text was updated successfully, but these errors were encountered: