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: handle circular maps and sets in inspect() #14776

Closed
wants to merge 1 commit into from

Conversation

aqrln
Copy link
Contributor

@aqrln aqrln commented Aug 11, 2017

Handle maps and sets with circular references in util.inspect() the
way objects and arrays are treated in this case.

Fixes: #14758

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

util

Handle maps and sets with circular references in `util.inspect()` the
way objects and arrays are treated in this case.

Fixes: nodejs#14758
@aqrln aqrln added the util Issues and PRs related to the built-in util module. label Aug 11, 2017
@aqrln
Copy link
Contributor Author

aqrln commented Aug 11, 2017

@BridgeAR oops, didn't see your PR, sorry. Just opened the issue and noticed it. Should I close mine?

@BridgeAR
Copy link
Member

@aqrln I do not mind either way. Your call

@aqrln
Copy link
Contributor Author

aqrln commented Aug 11, 2017

Closed in favor of #14775 since that PR was opened first.

@aqrln aqrln closed this Aug 11, 2017
@aqrln aqrln deleted the deja-vu-is-a-glitch-in-the-matrix branch August 12, 2017 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
util Issues and PRs related to the built-in util module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

util.inspect not checking for loops in {,Weak}Map data
2 participants