dillon1000/react
Commit
Browse files TryStatement: disallow throw inside try/catch
Modeling `throw` inside of a try/catch is awkward because it's basically a variable reassignment and a goto together. Thankfully that is an antipattern — using exceptions instead of control-flow — so it seems pretty reasonable to just put a todo here and leave it.
Changed paths4 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/HIR/HIRBuilder.ts ModifiedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.todo.try-catch-with-throw.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.todo.try-catch-with-throw.js AddedPatch
Files changed
Rendering syntax-highlighted changes…