mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
d376cf1e37
We were treating Destructuring as if it could never allocate and therefore didn't have to be memoized. That's only true if there are no rest spreads though. This PR teaches the compiler to treat rest spreads differently for scoping and memoization purposes, fixing the newly added test case and some existing bugs.