dillon1000/react
Commit
Browse files Support empty catch clause
Adds support for empty catch clauses in a try/catch. We add a new block kind `catch` which prevents the empty catch block from being merged with other types of blocks, preserving the block structure within the HIR and allowing us to reconstruct the empty catch.
Changed paths6 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/SSA/LeaveSSA.ts ModifiedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/empty-catch-statement.expect.md AddedR compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.empty-catch-statement.ts →compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/empty-catch-statement.ts RenamedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.empty-catch-statement.expect.md DeletedPatch
Files changed
Rendering syntax-highlighted changes…