util: improve `Symbol.toStringTag` handling · nodejs/node@973d705 · GitHub
Skip to content

Commit 973d705

Browse files
BridgeARtargos
authored andcommitted
util: improve Symbol.toStringTag handling
Only special handle `Symbol.toStringTag` if the property is not enumerable or not the own property of the inspected object. PR-URL: #27342 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 4dfe54a commit 973d705

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

lib/internal/util/inspect.js

Lines changed: 8 additions & 1 deletion

test/parallel/test-util-inspect.js

Lines changed: 14 additions & 2 deletions

0 commit comments

Comments
 (0)