Skip to content

Expose EventTarget and Event by default? #35495

Description

@addaleax

I think it might make sense to expose the EventTarget and Event classes on the global object. We usually do this in semver-major changes only, so it might make sense to do this in Node v15.0.0 with an exception from the @nodejs/tsc, so that these classes are available for features that we add.

Activity

  1. added
    eventtargetIssues and PRs related to the EventTarget implementation.
    on Oct 4, 2020
  2. noseratio commented on Oct 4, 2020

    @noseratio

    That'd be perfect! E.g., I have a module that could work unmodified in both browser and Node.js if EventTarget and Event were present on the global object.

  3. mcollina commented on Oct 4, 2020

    @mcollina
    SponsorMember

    Let's go for it. Node v15 seems about a good time to do this.

  4. jasnell commented on Oct 4, 2020

    @jasnell
    Member

    Works for me!

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.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions