[compiler] Fix Stack overflow in Stack.find/contains/each/print on deeply nested scopes #37581

Open
sleitor opened 4:36am on September 11, 2026 wants to merge 1 commit into facebook/react main from
fix-37445

Pull request #37581 quality checks

Code files and functions touched by this pull request are analyzed below.

Quality targets

How does this pull request compare to chosen code quality targets? Read more about code quality targets.

Target name Target value This PR
Maximum Diff Delta per PR 500 0
Maximum comment count per PR 10 0
Pull request maximum business days between activity 3 6
Pull request maximum business days open 5 6

Coupled files

Are there any files from this commit that are always committed alongside another file? This often suggests that there exists code coupling to potentially remove. Read more about code coupling

No file coupling detected. 🎉

Biggest files changes in pull request

Path View whole file Lines removed Lines added Final line count
compiler/packages/babel-plugin-react-compiler/src/Utils/Stack.ts 0 0 ---
compiler/packages/babel-plugin-react-compiler/src/__tests__/Stack-test.ts 0 0 ---

️ Biggest functions grown or shrunk by pull request

Which functions had their line count change as part of this pull request?

Could not find any functions changed by this pull request.