Skip to content

Minor EventTarget correctness issues #33773

Description

@domenic

I just noticed some very minor things while idly browsing recent node commits. /cc @benjamingr.

  • Version: 56e4460
  • Subsystem: events

Per Web IDL, EventTarget.prototype[Symbol.toStringTag] should be a data property, not a getter. The commit above introduced it as a getter.

Note that url.js appears to do this correctly using the defineIDLClass function, which perhaps should be shared.

  • Version: 2d071e7
  • Subsystem: events

isTrusted should not have a setter. It should only have a getter, since it is declared as a readonly Web IDL attribute.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions