Skip to content

util: escape symbol and non-enumerable keys - #22300

Closed
BridgeAR wants to merge 1 commit into
nodejs:masterfrom
BridgeAR:fix-key-escaping
Closed

util: escape symbol and non-enumerable keys#22300
BridgeAR wants to merge 1 commit into
nodejs:masterfrom
BridgeAR:fix-key-escaping

Conversation

@BridgeAR

Copy link
Copy Markdown
Member

These keys require escaping as they might also contain line breaks
and other special characters.

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

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added the util Issues and PRs related to the built-in util module. label Aug 13, 2018
@BridgeAR

Copy link
Copy Markdown
MemberAuthor

@BridgeAR

Copy link
Copy Markdown
MemberAuthor

@nodejs/util PTAL

These keys require escaping as they might also contain line breaks
and other special characters.
@BridgeAR

BridgeAR commented Aug 15, 2018

Copy link
Copy Markdown
MemberAuthor

@BridgeAR

Copy link
Copy Markdown
MemberAuthor

PTAL. This needs a review.

@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Aug 17, 2018
@benjamingr

Copy link
Copy Markdown
Member

Not sure about semverness, please run a citgm before landing. Nice find :)

@BridgeAR

BridgeAR commented Aug 17, 2018

Copy link
Copy Markdown
MemberAuthor

CITGM this PR https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1513/ ✔️
CITGM other PR https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1507/

@mcollinamcollina 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.

LGTM

BridgeAR added a commit to BridgeAR/node that referenced this pull request Aug 19, 2018
These keys require escaping as they might also contain line breaks
and other special characters.
PR-URL: nodejs#22300
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
@BridgeAR

Copy link
Copy Markdown
MemberAuthor

Landed in a04f2f7

@targostargos added backport-requested-v10.x and removed author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Aug 19, 2018
@targos

Copy link
Copy Markdown
Member

Should this be backported to v10.x-staging? If yes please follow the guide and raise a backport PR, if not let me know or add the dont-land-on label.

@targos

Copy link
Copy Markdown
Member

Landed easily after #21869

targos pushed a commit that referenced this pull request Aug 19, 2018
These keys require escaping as they might also contain line breaks
and other special characters.
PR-URL: #22300
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
targos pushed a commit that referenced this pull request Sep 3, 2018
These keys require escaping as they might also contain line breaks
and other special characters.
PR-URL: #22300
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
@targostargos mentioned this pull request Sep 5, 2018
@BridgeAR
BridgeAR deleted the fix-key-escaping branch January 20, 2020 11:35
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

utilIssues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@BridgeAR@nodejs-github-bot@benjamingr@targos@mcollina@jasnell