Skip to content

Conversation

@Ayoub-Mabrouk
Copy link

Replace native array.push() with ArrayPrototypePush in lib/internal/util/comparisons.js for consistency and security.

This improves protection against prototype pollution and aligns with the primordials pattern used throughout the codebase.

Replace native array.push() with ArrayPrototypePush in
lib/internal/util/comparisons.js for consistency and security.

This improves protection against prototype pollution and aligns with
the primordials pattern used throughout the codebase.
@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 Dec 29, 2025
@codecov
Copy link

codecov bot commented Dec 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.01%. Comparing base (05d6b9b) to head (9b5d7b1).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #61198      +/-   ##
==========================================
- Coverage   88.53%   88.01%   -0.53%     
==========================================
  Files         703      703              
  Lines      208599   208599              
  Branches    40229    40143      -86     
==========================================
- Hits       184685   183595    -1090     
- Misses      15939    16970    +1031     
- Partials     7975     8034      +59     
Files with missing lines Coverage Δ
lib/internal/util/comparisons.js 99.70% <100.00%> (ø)

... and 97 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. util Issues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants