mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
`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: https://github.com/nodejs/node/issues/60717 PR-URL: https://github.com/nodejs/node/pull/61032 Reviewed-By: Jordan Harband <ljharb@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>