lib: use bracket notation instead of `String.prototype.startWith` for locks by kimtaejin3 · Pull Request #61492 · nodejs/node · GitHub
Skip to content

lib: use bracket notation instead of String.prototype.startWith for locks#61492

Merged
nodejs-github-bot merged 3 commits into
nodejs:mainfrom
kimtaejin3:lib/prefer-primordials-in-locks
Jan 29, 2026
Merged

lib: use bracket notation instead of String.prototype.startWith for locks#61492
nodejs-github-bot merged 3 commits into
nodejs:mainfrom
kimtaejin3:lib/prefer-primordials-in-locks

Conversation

@kimtaejin3

Copy link
Copy Markdown
Contributor

Use StringPrototypeStartsWith from primordials instead of String.prototype.startsWith to prevent prototype pollution.

Use StringPrototypeStartsWith from primordials instead of
String.prototype.startsWith to prevent prototype pollution.

Refs: nodejs#59699
@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Jan 23, 2026
@codecov

codecov Bot commented Jan 23, 2026

Copy link
Copy Markdown

@aduh95 aduh95 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 Jan 23, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 23, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Comment thread lib/internal/locks.js Outdated
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Co-authored-by: Jordan Harband <ljharb@gmail.com>
@kimtaejin3 kimtaejin3 changed the title lib: use StringPrototypeStartsWith from primordials in locks lib: use bracket notation instead of String.prototype.startWith in locks Jan 24, 2026
@kimtaejin3 kimtaejin3 changed the title lib: use bracket notation instead of String.prototype.startWith in locks lib: use bracket notation instead of String.prototype.startWith for locks Jan 24, 2026
Comment thread lib/internal/locks.js Outdated
Co-authored-by: Gürgün Dayıoğlu <hey@gurgun.day>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@gurgunday gurgunday added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Jan 29, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 29, 2026
@nodejs-github-bot nodejs-github-bot merged commit 784ca7b into nodejs:main Jan 29, 2026
66 of 69 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

aduh95 pushed a commit that referenced this pull request Feb 2, 2026
Use StringPrototypeStartsWith from primordials instead of
String.prototype.startsWith to prevent prototype pollution.

Refs: #59699
PR-URL: #61492
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
aduh95 pushed a commit that referenced this pull request Feb 2, 2026
Use StringPrototypeStartsWith from primordials instead of
String.prototype.startsWith to prevent prototype pollution.

Refs: #59699
PR-URL: #61492
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
aduh95 pushed a commit that referenced this pull request Feb 10, 2026
Use StringPrototypeStartsWith from primordials instead of
String.prototype.startsWith to prevent prototype pollution.

Refs: #59699
PR-URL: #61492
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
aduh95 pushed a commit that referenced this pull request Feb 14, 2026
Use StringPrototypeStartsWith from primordials instead of
String.prototype.startsWith to prevent prototype pollution.

Refs: #59699
PR-URL: #61492
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
aduh95 pushed a commit that referenced this pull request Feb 22, 2026
Use StringPrototypeStartsWith from primordials instead of
String.prototype.startsWith to prevent prototype pollution.

Refs: #59699
PR-URL: #61492
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
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. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants