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: escaping object keys in util.inspect() #16979

Closed
vsemozhetbyt opened this issue Nov 13, 2017 · 2 comments
Closed

util: escaping object keys in util.inspect() #16979

vsemozhetbyt opened this issue Nov 13, 2017 · 2 comments
Labels
good first issue Issues that are suitable for first-time contributors. util Issues and PRs related to the built-in util module.

Comments

@vsemozhetbyt
Copy link
Contributor

vsemozhetbyt commented Nov 13, 2017

  • Version: v4–v10
  • Platform: Windows 7 x64
  • Subsystem: util
'use strict';

console.log({ '\\n': '\\n' });
{ '\n': '\\n' }

Is it OK that we escape values here, but do not escape keys?

@vsemozhetbyt vsemozhetbyt added the util Issues and PRs related to the built-in util module. label Nov 13, 2017
@addaleax
Copy link
Member

I think we should escape the keys, yes.

@addaleax addaleax added good first issue Issues that are suitable for first-time contributors. mentor-available labels Nov 13, 2017
@ah-yu
Copy link
Contributor

ah-yu commented Nov 13, 2017

Hi,I picked this one as my first contribution to node. Any guidance is more than appreciated

MylesBorins pushed a commit that referenced this issue Dec 12, 2017
PR-URL: #16986
Fixes: #16979
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
MylesBorins pushed a commit that referenced this issue Mar 20, 2018
PR-URL: #16986
Fixes: #16979
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
MylesBorins pushed a commit that referenced this issue Mar 28, 2018
PR-URL: #16986
Fixes: #16979
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
MylesBorins pushed a commit that referenced this issue Mar 30, 2018
PR-URL: #16986
Fixes: #16979
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Issues that are suitable for first-time contributors. util Issues and PRs related to the built-in util module.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants