dillon1000/react
Commit
Browse files [error] Prefix side-effecting function names with throw
I did a double take when I thought we didn't handle returning the error when reading the code and when I edited the code, typescript told me that there's no need to return as creating the error will throw. This PR makes it clear from the name of the function that we will throw.
Changed paths8 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/CompilerError.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/Entrypoint/Imports.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/HIR/FindContextIdentifiers.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/Inference/InferReferenceEffects.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CodegenReactiveFunction.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/SSA/EnterSSA.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/Validation/ValidateUseMemo.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…