mirror of
https://github.com/nodejs/node.git
synced 2026-11-15 10:36:53 -05:00
`util.inspect()` should handle all kinds of input, even if it is not well defined. Throwing is something that is meant to be worked around in all known cases. This fixes issues inspecting objects where accessing the Symbol.toStringTag would cause an error. The symbol is just ignored in that case. Refs: https://github.com/nodejs/node/issues/55539 Refs: https://github.com/nodejs/node/pull/55544 PR-URL: https://github.com/nodejs/node/pull/59860 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>