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

util: improve symbol to string tag #27342

Closed
wants to merge 2 commits into from

Conversation

BridgeAR
Copy link
Member

To reduce redundancy use the Symbol.toStringTag only if otherwise not visible.

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

Only special handle `Symbol.toStringTag` if the property is not
enumerable or not the own property of the inspected object.
The function is actually a getter, not a setter.
@BridgeAR BridgeAR requested a review from devsnek April 22, 2019 14:44
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot nodejs-github-bot added the util Issues and PRs related to the built-in util module. label Apr 22, 2019
Copy link
Member

@benjamingr benjamingr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change

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

@devsnek devsnek removed their request for review April 22, 2019 19:25
@devsnek
Copy link
Member

devsnek commented Apr 22, 2019

i'm feeling aggressively neutral about this

@danbev
Copy link
Contributor

danbev commented Apr 25, 2019

Landed in 2f1add1, and f0df222.

@danbev danbev closed this Apr 25, 2019
danbev pushed a commit that referenced this pull request Apr 25, 2019
Only special handle `Symbol.toStringTag` if the property is not
enumerable or not the own property of the inspected object.

PR-URL: #27342
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
danbev pushed a commit that referenced this pull request Apr 25, 2019
The function is actually a getter, not a setter.

PR-URL: #27342
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
targos pushed a commit that referenced this pull request Apr 27, 2019
Only special handle `Symbol.toStringTag` if the property is not
enumerable or not the own property of the inspected object.

PR-URL: #27342
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
targos pushed a commit that referenced this pull request Apr 27, 2019
The function is actually a getter, not a setter.

PR-URL: #27342
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@targos targos mentioned this pull request Apr 27, 2019
@BridgeAR BridgeAR deleted the improve-symbol-to-string-tag branch January 20, 2020 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. util Issues and PRs related to the built-in util module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants