Skip to content

AbortSignal.any does not work on all sequences #54674

Description

@KhafraDev

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    web-standardsIssues and PRs related to web-platform APIs and standards compliance.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions