dillon1000/react
Commit
Browse files Repro for "unreachable" hoisted function
For T175282529. We already detect hoisted functions and have a specific todo for them, but in this case the function is in unreachable code that gets pruned during BuildHIR. The later check for hoisted functions doesn't find it.
Changed paths2 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.todo-hoisted-function-in-unreachable-code.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.todo-hoisted-function-in-unreachable-code.js AddedPatch
Files changed
Rendering syntax-highlighted changes…