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] Bail out on local variables named 'fbt' #30524

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

Copy link

vercel bot commented Jul 30, 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 Jul 30, 2024 1:29am

mofeiZ added a commit that referenced this pull request Jul 30, 2024
ghstack-source-id: c4e2b802a029b9dd7941ebcdeaaf471ddd95f868
Pull Request resolved: #30524
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jul 30, 2024
@mofeiZ mofeiZ marked this pull request as ready for review July 30, 2024 01:25
@@ -311,6 +311,12 @@ export default class HIRBuilder {
}

resolveBinding(node: t.Identifier): Identifier {
if (node.name === 'fbt') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could also bail out when fbt is not directly imported, but that's not necessary as we only rename locals within functions the compiler processes

@mofeiZ mofeiZ merged commit db1a65a into gh/mofeiZ/15/base Jul 30, 2024
19 checks passed
mofeiZ added a commit that referenced this pull request Jul 30, 2024
ghstack-source-id: c4e2b802a029b9dd7941ebcdeaaf471ddd95f868
Pull Request resolved: #30524
@mofeiZ mofeiZ deleted the gh/mofeiZ/15/head branch July 30, 2024 20:32
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.

4 participants