Skip to content

Spell xplat's and arvr's iterator members [Symbol.iterator] instead of @@iterator (#2329) - #2329

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

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

Conversation

@SamChou19815

@SamChou19815 SamChou19815 commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary:
X-link: react/react-native#60482

Changelog: [Internal]

Differential Revision: D135456195

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 2, 2026
@meta-codesync

meta-codesync Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Metro review: Looks good

Risk: low · Commit: 806670a · 5 commands run

Rewrites the four @@iterator / @@asyncIterator members in Metro's Flow declarations for Node as [Symbol.iterator] / [Symbol.asyncIterator]. Flow 0.343.0 reports no errors at head, and iterating each of the four declared types gives the same element type before and after. No legacy spellings remain in Metro's Flow declarations.

No findings.

Verified
  • ✅ yarn flow full-check (head, unmodified) — Found 0 errors, with Flow 0.343.0.
  • ✅ yarn flow full-check (head, with probe packages/metro/src/reviewProbe.js) (failed as expected) — Iterating fs.Dir, readline$Interface, stream$Readable and URLSearchParams and casting elements to number gives 5 errors, showing Dirent, string, string | Buffer and [string, string].
  • ✅ yarn flow full-check (base, with the same probe) (failed as expected) — The same 5 errors with the same element types; only the declaration spelling and columns differ.
  • ✅ yarn prettier --check flow-typed/environment/node.js (head)
  • ✅ yarn eslint --no-ignore flow-typed/environment/node.js (head) — No problems reported.

Not run: Jest and benchmarks were not run: the change is confined to a Flow library declaration with no runtime effect. An initial combined check command was denied by the session's permissions because of shell variables; the probe was instead run as separate plain commands. The linked react-native PR was not reviewed.

Automated review by Claude. Advisory only: it never approves or blocks, and a maintainer makes the call.

… of `@@iterator` (#2329)

Summary:
X-link: react/react-native#60482


Changelog: [Internal]

Differential Revision: D135456195
@meta-codesync meta-codesync Bot changed the title Spell xplat's and arvr's iterator members [Symbol.iterator] instead of @@iterator Spell xplat's and arvr's iterator members [Symbol.iterator] instead of @@iterator (#2329) Dec 2, 2026
meta-codesync Bot pushed a commit to react/react-native that referenced this pull request Dec 2, 2026
… of `@@iterator` (#60482)

Summary:

X-link: react/metro#2329

Changelog: [Internal]

Differential Revision: D135456195
@meta-codesync
meta-codesync Bot merged commit bfa4345 into main Dec 2, 2026
17 of 20 checks passed
meta-codesync Bot pushed a commit to react/react-native that referenced this pull request Dec 2, 2026
… of `@@iterator` (#60482)

Summary:

X-link: react/metro#2329

Changelog: [Internal]

Differential Revision: D135456195

Pull Request resolved: #60482
@SamChou19815
SamChou19815 deleted the export-D135456195 branch December 2, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported needs-meta-import

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant