dillon1000/react
Commit
Browse files [be] Remove ValidateFrozenLambdas
This pass doesn't really make sense in light of `@enableTransitivelyFreezeFunctionExpressions`. The original idea of ValidateFrozenLambdas was that trying to pass a "mutable" lambda to a frozen value was invalid. But since then we've realized that the better heuristic is that freezing a lambda is transitive.
Changed paths13 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts ModifiedD compiler/packages/babel-plugin-react-forget/src/Validation/ValidateFrozenLambdas.ts DeletedM compiler/packages/babel-plugin-react-forget/src/Validation/index.ts ModifiedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.invalid-capture-func-passed-to-jsx.expect.md DeletedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.invalid-capture-func-passed-to-jsx.js DeletedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.invalid-freeze-conditionally-mutable-lambda.expect.md DeletedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.invalid-freeze-conditionally-mutable-lambda.js DeletedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.invalid-freeze-mutable-lambda-mutate-local.expect.md DeletedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.invalid-freeze-mutable-lambda-mutate-local.js DeletedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.invalid-freeze-mutable-lambda-reassign-local.expect.md DeletedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.invalid-freeze-mutable-lambda-reassign-local.js DeletedM compiler/packages/babel-plugin-react-forget/src/__tests__/parseConfigPragma-test.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…