Skip to content

Conversation

BridgeAR
Copy link
Member

@BridgeAR BridgeAR commented Oct 6, 2025

This makes sure special properties (such as a byteLength, buffer, and more) are marked that they are not regular properties. They are mostly getters, that just seemed even more of a breaking change. Thus, they just use square brackets for now.

On top of that, it makes inspecting detached DataViews robust. Inspecting those failed so far.

Closes: #56669

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. util Issues and PRs related to the built-in util module. labels Oct 6, 2025
This makes sure special properties (such as a byteLength, buffer,
and more) are marked that they are not regular properties. They
are mostly getters, that just seemed even more of a breaking change.
Thus, they just use square brackets for now.

On top of that, it makes inspecting detached DataViews robust.
Inspecting those failed so far.

Closes: nodejs#56669
@BridgeAR BridgeAR force-pushed the 2025-10-06-util-inspect-improvements branch from a4d876f to 6599727 Compare October 6, 2025 14:58
@ljharb

This comment was marked as resolved.

@BridgeAR BridgeAR changed the title util: mark special properties when inspecting them util: do not serialize getters as regular property using inspect Oct 6, 2025
@BridgeAR BridgeAR changed the title util: do not serialize getters as regular property using inspect util: do not print getters as regular property using inspect Oct 6, 2025
Copy link

codecov bot commented Oct 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.53%. Comparing base (7c85aa5) to head (db6203a).
⚠️ Report is 30 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #60131      +/-   ##
==========================================
+ Coverage   88.52%   88.53%   +0.01%     
==========================================
  Files         703      703              
  Lines      207825   207822       -3     
  Branches    40003    40011       +8     
==========================================
+ Hits       183976   184001      +25     
+ Misses      15862    15818      -44     
- Partials     7987     8003      +16     
Files with missing lines Coverage Δ
lib/internal/util/inspect.js 99.93% <100.00%> (+0.03%) ⬆️

... and 34 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@BridgeAR BridgeAR added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Oct 9, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 9, 2025
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. needs-ci PRs that need a full CI run. util Issues and PRs related to the built-in util module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants