Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[compiler] Repro for mutable range edge case #31479

Merged
merged 1 commit into from
Nov 11, 2024
Merged

[compiler] Repro for mutable range edge case #31479

merged 1 commit into from
Nov 11, 2024

Conversation

mofeiZ
Copy link
Contributor

@mofeiZ mofeiZ commented Nov 11, 2024

See test fixtures

Copy link

vercel bot commented Nov 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 11, 2024 4:32pm

Comment on lines +44 to +45
const y_alias = y;
const cb = () => y_alias.value;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that this intermediate StoreLocal was not necessary for bug repro before merging hir-rewrite. In #31345, this was a bug without the intermediate StoreLocal.

Now we check the mutable range of the base identifier when deriving hoistable loads

Copy link
Contributor

@josephsavona josephsavona left a comment

Choose a reason for hiding this comment

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

Nice find. Let's dive into the details in our compiler sync.

@mofeiZ mofeiZ merged commit 2ec26bc into main Nov 11, 2024
19 checks passed
@poteto poteto deleted the pr31479 branch November 18, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants