◐ Shell
reader mode source ↗
Skip to content

util: improve symbol to string tag#27342

Closed
BridgeAR wants to merge 2 commits into
nodejs:masterfrom
BridgeAR:improve-symbol-to-string-tag
Closed

util: improve symbol to string tag#27342
BridgeAR wants to merge 2 commits into
nodejs:masterfrom
BridgeAR:improve-symbol-to-string-tag

Conversation

@BridgeAR

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@benjamingr benjamingr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hide comment

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
Copy Markdown
Collaborator

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

devsnek commented Apr 22, 2019

Copy link
Copy Markdown
Member

i'm feeling aggressively neutral about this

@danbev

danbev commented Apr 25, 2019

Copy link
Copy Markdown
Contributor

Landed in 2f1add1, and f0df222.

@danbev danbev closed this Apr 25, 2019
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 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