util: limit inspect to only show own properties#61032
Merged
aduh95 merged 2 commits intonodejs:mainfrom Dec 22, 2025
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #61032 +/- ##
==========================================
- Coverage 88.52% 88.51% -0.01%
==========================================
Files 703 703
Lines 208538 208546 +8
Branches 40214 40219 +5
==========================================
- Hits 184615 184604 -11
- Misses 15921 15968 +47
+ Partials 8002 7974 -28
🚀 New features to boost your workflow:
|
ljharb
approved these changes
Dec 12, 2025
aduh95
reviewed
Dec 12, 2025
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: nodejs#60717 Closes: nodejs#60724
e0f773f to
29620d2
Compare
aduh95
reviewed
Dec 15, 2025
aduh95
approved these changes
Dec 15, 2025
aduh95
approved these changes
Dec 15, 2025
ljharb
approved these changes
Dec 17, 2025
Collaborator
Collaborator
Collaborator
Commit Queue failed- Loading data for nodejs/node/pull/61032 ✔ Done loading data for nodejs/node/pull/61032 ----------------------------------- PR info ------------------------------------ Title util: limit inspect to only show own properties (#61032) Author Ruben Bridgewater <ruben@bridgewater.de> (@BridgeAR) Branch BridgeAR:BridgeAR/2025-12-12-only-inspect-own-properties -> nodejs:main Labels assert, util, console, author ready, needs-ci, commit-queue-squash Commits 2 - util: limit inspect to only show own properties - fixup! Committers 1 - Ruben Bridgewater <ruben.bridgewater@datadoghq.com> PR-URL: https://github.com/nodejs/node/pull/61032 Fixes: https://github.com/nodejs/node/issues/60717 Fixes: https://github.com/nodejs/node/pull/60724 Reviewed-By: Jordan Harband <ljharb@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/61032 Fixes: https://github.com/nodejs/node/issues/60717 Fixes: https://github.com/nodejs/node/pull/60724 Reviewed-By: Jordan Harband <ljharb@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> -------------------------------------------------------------------------------- ℹ This PR was created on Fri, 12 Dec 2025 13:25:23 GMT ✔ Approvals: 2 ✔ - Jordan Harband (@ljharb): https://github.com/nodejs/node/pull/61032#pullrequestreview-3586247028 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/61032#pullrequestreview-3580403058 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2025-12-20T01:37:30Z: https://ci.nodejs.org/job/node-test-pull-request/70539/ - Querying data for job/node-test-pull-request/70539/ ✔ Build data downloaded ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 61032 From https://github.com/nodejs/node * branch refs/pull/61032/merge -> FETCH_HEAD ✔ Fetched commits as d7e4108bc1be..eee56d642aee -------------------------------------------------------------------------------- Auto-merging lib/internal/util/inspect.js [main 04e7a6fb99] util: limit inspect to only show own properties Author: Ruben Bridgewater <ruben.bridgewater@datadoghq.com> Date: Fri Dec 12 13:24:26 2025 +0100 3 files changed, 50 insertions(+), 2 deletions(-) [main fe73d78442] fixup! Author: Ruben Bridgewater <ruben.bridgewater@datadoghq.com> Date: Mon Dec 15 22:58:30 2025 +0100 1 file changed, 1 deletion(-) ✔ Patches applied There are 2 commits in the PR. Attempting to fixup everything into first commit. [main f01508c6bd] util: limit inspect to only show own properties Author: Ruben Bridgewater <ruben.bridgewater@datadoghq.com> Date: Fri Dec 12 13:24:26 2025 +0100 2 files changed, 49 insertions(+), 2 deletions(-) ⚠ Found Fixes: https://github.com/nodejs/node/issues/60717, skipping.. --------------------------------- New Message ---------------------------------- util: limit inspect to only show own propertieshttps://github.com/nodejs/node/actions/runs/20430516616 |
Contributor
|
Landed in 26b7fd2 |
|
@aduh95 is this likely to get cherry picked into v24? It's a bit of a blocker for us upgrading from v22 -> v24 |
aduh95
pushed a commit
that referenced
this pull request
Jan 9, 2026
`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>
aduh95
pushed a commit
that referenced
this pull request
Jan 12, 2026
`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>
RafaelGSS
pushed a commit
that referenced
this pull request
Jan 13, 2026
`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>
aduh95
pushed a commit
that referenced
this pull request
Jan 19, 2026
`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>
islandryu
pushed a commit
to islandryu/node
that referenced
this pull request
Jan 25, 2026
`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: nodejs#60717 PR-URL: nodejs#61032 Reviewed-By: Jordan Harband <ljharb@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
As drive-by I changed an array to a set for faster lookup in assert.
Fixes: #60717
Closes: #60724