mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
When destructuring, spread creates a new mutable object that _captures_ part of the original rvalue. This new value is safe to modify. When making this change I realized that we weren't inferring array pattern spread as creating an array (in type inference) so I also added that here.