Skip to content

Conversation

@Ayoub-Mabrouk
Copy link

Replace native array method (.push) with primordials (ArrayPrototypePush) in lib/internal/modules/helpers.js for consistency and security.

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

Replace native array method (.push) with primordials (ArrayPrototypePush)
in lib/internal/modules/helpers.js for consistency and security. This
improves protection against prototype pollution and aligns with the
primordials pattern used throughout the codebase.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders

@nodejs-github-bot nodejs-github-bot added module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run. labels Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants