util: limit `inspect` to only show own properties · nodejs/node@6acc9d7 · GitHub
Skip to content

Commit 6acc9d7

Browse files
BridgeARaduh95
authored andcommitted
util: limit inspect to only show own properties
`Error`'s `cause` and `errors` properties would be visible even if these were not own properties. This is changed to align with all other parts of the `inspect` handling. Fixes: #60717 PR-URL: #61032 Reviewed-By: Jordan Harband <ljharb@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 09ccd94 commit 6acc9d7

2 files changed

Lines changed: 49 additions & 2 deletions

File tree

lib/internal/util/inspect.js

Lines changed: 2 additions & 2 deletions

test/parallel/test-util-inspect.js

Lines changed: 47 additions & 0 deletions

0 commit comments

Comments
 (0)