Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

events: deal with Symbol() passed to event constructor #33612

Closed

Conversation

benjamingr
Copy link
Member

Align behavior of Event constructor when a symbol is passed with what the DOM does.

Old behavior:

  • new Event(Symbol()) creates an event with type "Symbol()"
    New behavior:
  • new Event(Symbol()) throws an error (like browsers do).

cc @jasnell

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@benjamingr benjamingr requested a review from jasnell May 28, 2020 14:29
@benjamingr benjamingr added the events Issues and PRs related to the events subsystem / EventEmitter. label May 28, 2020
@nodejs-github-bot
Copy link
Collaborator

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 28, 2020
@nodejs-github-bot
Copy link
Collaborator

@jasnell jasnell added the fast-track PRs that do not need to wait for 48 hours to land. label May 29, 2020
@jasnell
Copy link
Member

jasnell commented May 29, 2020

Fixups to unrelease internal feature. Fast track?

@BridgeAR
Copy link
Member

@benjamingr this needs a rebase.

@BridgeAR BridgeAR removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 30, 2020
@benjamingr
Copy link
Member Author

@BridgeAR thanks, rebased :]

@benjamingr benjamingr force-pushed the event-constructor-symbol-passed branch from 9031d99 to 1cd9500 Compare May 30, 2020 11:29
@nodejs-github-bot
Copy link
Collaborator

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 30, 2020
@benjamingr benjamingr force-pushed the event-constructor-symbol-passed branch 2 times, most recently from bbb1b12 to 3749047 Compare May 31, 2020 11:44
@BridgeAR BridgeAR force-pushed the master branch 2 times, most recently from 8ae28ff to 2935f72 Compare May 31, 2020 12:18
@benjamingr benjamingr force-pushed the event-constructor-symbol-passed branch from e9f1ce2 to 0a2edb5 Compare May 31, 2020 12:59
@BridgeAR BridgeAR removed author ready PRs that have at least one approval, no pending requests for changes, and a CI started. fast-track PRs that do not need to wait for 48 hours to land. labels May 31, 2020
Signed-off-by: Ruben Bridgewater <[email protected]>
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

jasnell pushed a commit that referenced this pull request Jun 3, 2020
PR-URL: #33612
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
@jasnell
Copy link
Member

jasnell commented Jun 3, 2020

Landed in 3a7a5d7

@jasnell jasnell closed this Jun 3, 2020
codebytere pushed a commit that referenced this pull request Jun 18, 2020
PR-URL: #33612
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
@codebytere codebytere mentioned this pull request Jun 28, 2020
codebytere pushed a commit that referenced this pull request Jun 30, 2020
PR-URL: #33612
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
events Issues and PRs related to the events subsystem / EventEmitter.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants