dillon1000/react
Commit
Browse files Todo for "unreachable" possibly-hoisted functions
Adds a todo in HIRBuilder, before we prune unreachable code we check if there were any function expressions. Realistically that's only going to occur for hoisted functions, so this lets us target a todo rather than hit an invariant.
Changed paths3 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/HIR/HIRBuilder.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.todo-hoisted-function-in-unreachable-code.expect.md ModifiedM compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.todo-hoisted-function-in-unreachable-code.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…