Skip to content

lib: use Object.freeze to avoid defensive cloning in SourceMap#62830

Open
watilde wants to merge 1 commit intonodejs:mainfrom
watilde:fixes-memory-sourcemap
Open

lib: use Object.freeze to avoid defensive cloning in SourceMap#62830
watilde wants to merge 1 commit intonodejs:mainfrom
watilde:fixes-memory-sourcemap

Conversation

@watilde
Copy link
Copy Markdown
Member

@watilde watilde commented Apr 19, 2026

No description provided.

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Apr 19, 2026
@watilde watilde force-pushed the fixes-memory-sourcemap branch from 3b8cc82 to 73ffd8a Compare April 19, 2026 10:40
@watilde watilde changed the title perf: use Object.freeze to avoid defensive cloning in SourceMap lib: use Object.freeze to avoid defensive cloning in SourceMap Apr 19, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.68%. Comparing base (58a8e1d) to head (73ffd8a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #62830      +/-   ##
==========================================
- Coverage   89.69%   89.68%   -0.01%     
==========================================
  Files         706      706              
  Lines      218222   218220       -2     
  Branches    41768    41767       -1     
==========================================
- Hits       195731   195713      -18     
- Misses      14411    14414       +3     
- Partials     8080     8093      +13     
Files with missing lines Coverage Δ
lib/internal/source_map/source_map.js 99.48% <100.00%> (+0.25%) ⬆️

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants