mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
I realized that codegen still had a fallback for generating identifier nodes for unnamed temporaries. This PR updates codegen to throw if it needs to generate an identifier for a temporary, and updates earlier passes to promote temporaries to named values in all the cases that were missed: * BuildHIR needs to promote temporaries for temporaries in destructuring bindings and catch clause bindings * PromoteUsedTemporaries has to promote temporaries for destructured function parameters or function params that are context variables.