[Compiler Bug]: Increment expression in for-loop loses assignment operation #29956
Closed
1 of 4 tasks
Labels
Component: Optimizing Compiler
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Type: Bug
What kind of issue is this?
Link to repro
https://playground.react.dev/#N4Igzg9grgTgxgUxALhAMygOzgFwJYSYAEAGgBQCURwAOsUWhDEWQDYI5F5EC8RADAG4uRADxEAjPyEi+3ANSSqwAL50VIFUA
Repro steps
In our repo we have code similar to the Playground link posted above which when compiled loses the assignment part of the increment expression.
The original code:
Compiled to this code:
Happy to provide additional information or context if needed, thanks!
How often does this bug happen?
Every time
What version of React are you using?
19.0.0-rc-f3e09d6328-20240612
The text was updated successfully, but these errors were encountered: