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 interaction b/w outlining and idx #30435

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

poteto
Copy link
Member

@poteto poteto commented Jul 23, 2024

Stack from ghstack (oldest at bottom):

babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

[ghstack-poisoned]
Copy link

vercel bot commented Jul 23, 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 23, 2024 7:52pm

poteto added a commit that referenced this pull request Jul 23, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec552056f33090e2f7bc0536a6006d79d18
Pull Request resolved: #30435
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jul 23, 2024
@@ -0,0 +1,12 @@
import idx from 'idx';
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: could we rename this fixture to error.bug-idx-outlining to differentiate between bugs and expected errors?

Copy link
Member Author

Choose a reason for hiding this comment

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

oops, landed too quickly! i'm gonna try and fix this bug so hopefully I'll be able to rename it then

@poteto poteto merged commit fd0923a into gh/poteto/36/base Jul 23, 2024
21 checks passed
poteto added a commit that referenced this pull request Jul 23, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec552056f33090e2f7bc0536a6006d79d18
Pull Request resolved: #30435
@poteto poteto deleted the gh/poteto/36/head branch July 23, 2024 19:57
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec552056f33090e2f7bc0536a6006d79d18
Pull Request resolved: facebook#30435
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec552056f33090e2f7bc0536a6006d79d18
Pull Request resolved: facebook#30435
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec552056f33090e2f7bc0536a6006d79d18
Pull Request resolved: facebook#30435
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec552056f33090e2f7bc0536a6006d79d18
Pull Request resolved: facebook#30435
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec552056f33090e2f7bc0536a6006d79d18
Pull Request resolved: facebook#30435
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec552056f33090e2f7bc0536a6006d79d18
Pull Request resolved: facebook#30435
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
babel-plugin-idx enforces that its 2nd argument is an arrow function, so
outlining needs to skip over lambdas that are args to idx. This PR adds
a small repro highlighting the issue.

ghstack-source-id: b4627ec552056f33090e2f7bc0536a6006d79d18
Pull Request resolved: facebook#30435
mvitousek added a commit that referenced this pull request Aug 2, 2024
Summary:
Fixes issue documented by #30435. We change the pipeline order so that outlining comes after tracking macro operands, and any function that is referenced in a macro will now not be outlined.

[ghstack-poisoned]
mvitousek added a commit that referenced this pull request Aug 2, 2024
Summary:
Fixes issue documented by #30435. We change the pipeline order so that outlining comes after tracking macro operands, and any function that is referenced in a macro will now not be outlined.

ghstack-source-id: 3a9757013875c0c48a7e0331ead83edeaf8ec9d9
Pull Request resolved: #30587
mvitousek added a commit that referenced this pull request Aug 2, 2024
…being outlined"

Summary:
Fixes issue documented by #30435. We change the pipeline order so that outlining comes after tracking macro operands, and any function that is referenced in a macro will now not be outlined.

[ghstack-poisoned]
mvitousek added a commit that referenced this pull request Aug 2, 2024
Summary:
Fixes issue documented by #30435. We change the pipeline order so that outlining comes after tracking macro operands, and any function that is referenced in a macro will now not be outlined.

[ghstack-poisoned]
mvitousek added a commit that referenced this pull request Aug 2, 2024
Summary:
Fixes issue documented by #30435. We change the pipeline order so that outlining comes after tracking macro operands, and any function that is referenced in a macro will now not be outlined.

ghstack-source-id: f731ad65c8b84db3fc5f3a2ff3a6986112765963
Pull Request resolved: #30587
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