Skip to content

Spell [Symbol.iterator] instead of @@iterator in HTMLCollection and NodeList (#60501) - #60501

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

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

Conversation

@SamChou19815

@SamChou19815 SamChou19815 commented Dec 2, 2026 •

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.

Spell [Symbol.iterator](): IteratorObject<T> instead of @iterator(): IteratorObject<T> in HTMLCollection.js.flow and NodeList.js.flow (matching their runtime implementations in HTMLCollection.js and NodeList.js).

Requires flow-api-translator with computed [Symbol.*] key support so build-types can translate [Symbol.iterator] to TypeScript declarations.

Changelog: [Internal]

Differential Revision: D135780451

@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 D135780451.

… and `NodeList` (#60501)

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.

Spell `[Symbol.iterator](): IteratorObject<T>` instead of `@iterator(): IteratorObject<T>` in `HTMLCollection.js.flow` and `NodeList.js.flow` (matching their runtime implementations in `HTMLCollection.js` and `NodeList.js`).

Requires `flow-api-translator` with computed `[Symbol.*]` key support so `build-types` can translate `[Symbol.iterator]` to TypeScript declarations.

Changelog: [Internal]

Differential Revision: D135780451
@meta-codesync meta-codesync Bot changed the title Spell [Symbol.iterator] instead of @@iterator in HTMLCollection and NodeList Spell [Symbol.iterator] instead of @@iterator in HTMLCollection and NodeList (#60501) Dec 3, 2026
@meta-codesync
meta-codesync Bot merged commit 908805e into main Dec 3, 2026
101 of 102 checks passed
@react-native-bot react-native-bot added the Merged This PR has been merged. label Dec 3, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @SamChou19815 in 908805e

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

@SamChou19815
SamChou19815 deleted the export-D135780451 branch December 3, 2026 05:05
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