mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
When the LHS of an assignment is a destructuring pattern, don't pass preferred_dst when generating the RHS expression. This matches the C++ pipeline which always allocates a fresh register for the RHS value. The difference was visible when a destructuring assignment appeared inside a logical AND expression: the C++ pipeline would allocate the RHS into a fresh register and then copy it to the AND result register, while the Rust pipeline would evaluate the RHS directly into the AND result register, omitting the copy.