Skip to content

fs: fix enumerability of Date properties on Stats objects#63328

Open
LiviaMedeiros wants to merge 1 commit into
nodejs:mainfrom
LiviaMedeiros:stats-date-enumerable
Open

fs: fix enumerability of Date properties on Stats objects#63328
LiviaMedeiros wants to merge 1 commit into
nodejs:mainfrom
LiviaMedeiros:stats-date-enumerable

Conversation

@LiviaMedeiros
Copy link
Copy Markdown
Member

This basically implements suggestions for Temporal version of these properties: #60789 (comment) (prefer setOwnProperty() in setter which also makes accessed properties enumerable), #60789 (comment) (prefer setOwnProperty() in getter to avoid triggering setter).

/cc @aduh95

Signed-off-by: LiviaMedeiros <livia@cirno.name>
@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. util Issues and PRs related to the built-in util module. labels May 15, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.05%. Comparing base (c24e552) to head (ecdc1fb).
⚠️ Report is 16 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #63328    +/-   ##
========================================
  Coverage   90.05%   90.05%            
========================================
  Files         714      714            
  Lines      225247   225368   +121     
  Branches    42578    42600    +22     
========================================
+ Hits       202842   202966   +124     
- Misses      14181    14185     +4     
+ Partials     8224     8217     -7     
Files with missing lines Coverage Δ
lib/internal/fs/utils.js 99.68% <100.00%> (ø)
lib/internal/util.js 96.82% <100.00%> (+<0.01%) ⬆️

... and 31 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.

@addaleax addaleax 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 May 15, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 15, 2026
@nodejs-github-bot
Copy link
Copy Markdown
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. fs Issues and PRs related to the fs subsystem / file system. 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.

6 participants