mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
99b9da4b009b4eccda12a6546747497bcd00f5fb
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.
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%