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

Avoid GCC optimizations affecting function arity #31598

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Nov 20, 2024

Seems to not work. May have to wait for #31587

Summary

Closes #31578

How did you test this change?

Lint against optimization. It's more noisy than it needs to but I was too lazy to avound for every possible kind of function syntax.

You can also yarn build react-dom/client --type=NODE_DEV to check that JSCompiler_OptimizeArgumentsArray_ still replaces arguments.

Copy link

vercel bot commented Nov 20, 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 20, 2024 7:16pm

@eps1lon eps1lon changed the title Lint against GCC optimizeArgumentsArray passes Avoid GCC optimizations affecting function arity Nov 20, 2024
@facebook-github-bot facebook-github-bot added the React Core Team Opened by a member of the React Core Team label Nov 20, 2024
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.

[React 19] useState's setter function becomes arity 2
3 participants