util: display Symbol keys in inspect by default · nodejs/node@5bfd13b · GitHub
Skip to content

Commit 5bfd13b

Browse files
mightyiamaddaleax
authored andcommitted
util: display Symbol keys in inspect by default
I use symbol key properties. And I find it awful that they do not show up in inspection. I can alter `util.inspect.defaultOptions.showHidden` each time I debug. Does that sound like fun to you? Isn't fun a core principle life? The way I see it, it is not about the spec or about what is enumerable/hidden, etc. When inspecting, it is about ease of access to the information. That's how I see it. Does anyone have any other thoughts? Fixes: #9709 PR-URL: #9726 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent 474e9d6 commit 5bfd13b

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

lib/util.js

Lines changed: 5 additions & 2 deletions

test/parallel/test-util-inspect.js

Lines changed: 16 additions & 5 deletions

0 commit comments

Comments
 (0)