Skip to content

It should be impossible to construct an AbortSignal manually #36064

Description

@benjamingr

In AbortController/AbortSignal it is possible to construct an AbortSignal without a controller (but shouldn't be):

> var c = new AbortController();
> new c.signal.constructor()
AbortSignal { aborted: false }

Correct behavior:

> var c = new AbortController();
new c.signal.constructor()
TypeError: Illegal Constructor

This should be a relatively simple fix but it's a spec compliance issue - so if no new contributor picks this up I'll fix this sometime next week :]

Activity

  1. added
    good first issueIssues that are suitable for first-time contributors.
    eventtargetIssues and PRs related to the EventTarget implementation.
    on Nov 10, 2020
  2. dev-script commented on Nov 10, 2020

    @dev-script
    Contributor

    @benjamingr , I would like to work on this issue

  3. benjamingr commented on Nov 14, 2020

    @benjamingr
    MemberAuthor

    Thanks @RaisinTen !

  4. RaisinTen commented on Nov 14, 2020

    @RaisinTen
    Member

    @benjamincburns you're welcome. 🙂

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

    eventtargetIssues and PRs related to the EventTarget implementation.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions