Skip to content

Conversation

@jakebailey
Copy link
Member

@jakebailey jakebailey commented Dec 11, 2025

Reverts #62873

It did not fix the linked issue, but instead actually "fixed" #47310, which is marked as working-as-intended for the same reason as why we ban other params for strictness' sake.

@github-project-automation github-project-automation bot moved this from Not started to Needs merge in PR Backlog Dec 11, 2025
@jakebailey jakebailey enabled auto-merge December 11, 2025 21:11
@jakebailey jakebailey disabled auto-merge December 11, 2025 21:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts a previous change that modified the String.prototype.matchAll type signature. The revert restores the original behavior where matchAll only accepts RegExp parameter instead of RegExp | string, aligning with TypeScript's strictness policy on similar methods.

  • Reverts the type signature of String.prototype.matchAll from accepting RegExp | string back to only RegExp
  • Updates JSDoc description to reflect the reverted parameter type
  • Updates test baseline to match the reverted type signature

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
src/lib/es2020.string.d.ts Reverts matchAll parameter type from RegExp | string to RegExp and updates JSDoc
tests/baselines/reference/stringMatchAll.types Updates type baseline to reflect reverted matchAll signature

@jakebailey jakebailey enabled auto-merge December 11, 2025 21:15
@jakebailey
Copy link
Member Author

for posterity for other readers, see thread at #62873 (comment)

@jakebailey jakebailey added this pull request to the merge queue Dec 11, 2025
@jakebailey jakebailey removed this pull request from the merge queue due to a manual request Dec 11, 2025
@jakebailey jakebailey added this pull request to the merge queue Dec 11, 2025
Merged via the queue into main with commit c84cb94 Dec 11, 2025
33 checks passed
@jakebailey jakebailey deleted the revert-62873-patch-2 branch December 11, 2025 22:32
@github-project-automation github-project-automation bot moved this from Needs merge to Done in PR Backlog Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants