dillon1000/react
Commit
Browse files Fix LeaveSSA missing param declarations
Nice find from @mofeiz, we weren't adding declarations for function params in LeaveSSA. This caused us to hit an invariant for update expressions that updated params which assumed that all named variables had a declaration. This is why it's helpful to add invariants, it helps you find places where you violate them :-)
Changed paths4 files
First-parent comparisoncompiler/forget/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneNonEscapingScopes.ts ModifiedM compiler/forget/packages/babel-plugin-react-forget/src/SSA/LeaveSSA.ts ModifiedA compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/update-expression-on-function-parameter.expect.md AddedA compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/update-expression-on-function-parameter.js AddedPatch
Files changed
Rendering syntax-highlighted changes…