Skip to content

Extend Iterable in ReadonlyURLSearchParams instead of declaring @@iterator - #60498

Merged
meta-codesync[bot] merged 1 commit into
mainfrom
export-D135753192
Dec 3, 2026
Merged

meta-codesync[bot] merged 1 commit into
mainfrom
export-D135753192

Conversation

@SamChou19815

Copy link
Copy Markdown
Member

Summary:
Flow is moving Symbol.iterator from the string literal '@iterator' to a unique symbol (matching TypeScript), so a member named @iterator names a string property rather than the iterator protocol.

Have ReadonlyURLSearchParams extend Iterable<[string, string]> instead of declaring @iterator(): Iterator<[string, string]>. This removes @iterator and translates cleanly to TypeScript.

Changelog: [Internal]

Differential Revision: D135753192

…@@iterator`

Summary:
Flow is moving `Symbol.iterator` from the string literal `'@iterator'` to a `unique symbol` (matching TypeScript), so a member named `@iterator` names a string property rather than the iterator protocol.

Have `ReadonlyURLSearchParams` extend `Iterable<[string, string]>` instead of declaring `@iterator(): Iterator<[string, string]>`. This removes `@iterator` and translates cleanly to TypeScript.

Changelog: [Internal]

Differential Revision: D135753192
@meta-codesync

meta-codesync Bot commented Dec 2, 2026

Copy link
Copy Markdown

@SamChou19815 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D135753192.

@meta-codesync
meta-codesync Bot merged commit 4f9cc80 into main Dec 3, 2026
109 of 113 checks passed
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @SamChou19815 in 4f9cc80

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Dec 3, 2026
@SamChou19815
SamChou19815 deleted the export-D135753192 branch December 3, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged This PR has been merged. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants