Skip to content

Conversation

@withgit-contributor
Copy link

@withgit-contributor withgit-contributor commented Sep 1, 2017

Circular references are conceptually nothing that should be checked
for objects (or Sets or Maps) only, but applies to recursive structures
in general, so move the seen checks into a position where it is part
of the recursion itself.

Fixes: #1
PR-URL: #2

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
Affected core subsystem(s)

@withgit-contributor withgit-contributor force-pushed the util-inspect-map-recurse branch 2 times, most recently from 25b6cfe to 17c424c Compare September 1, 2017 07:30
Circular references are conceptually nothing that should be checked
for objects (or Sets or Maps) only, but applies to recursive structures
in general, so move the `seen` checks into a position where it is part
of the recursion itself.

Fixes: with-git#1
PR-URL: with-git#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant