util: handle circular maps and sets in inspect()
Handle maps and sets with circular references in util.inspect()
the
way objects and arrays are treated in this case.
Fixes: https://github.com/nodejs/node/issues/14758
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
util