File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
compiler/packages/babel-plugin-react-compiler/src Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ function runWithEnvironment(
309309 env . config . validateExhaustiveEffectDependencies
310310 ) {
311311 // NOTE: this relies on reactivity inference running first
312- validateExhaustiveDependencies ( hir , env ) . unwrap ( ) ;
312+ validateExhaustiveDependencies ( hir ) . unwrap ( ) ;
313313 }
314314 }
315315
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import {
1818 areEqualPaths ,
1919 BlockId ,
2020 DependencyPath ,
21- Environment ,
2221 FinishMemoize ,
2322 GeneratedSource ,
2423 HIRFunction ,
@@ -89,8 +88,8 @@ const DEBUG = false;
8988 */
9089export function validateExhaustiveDependencies (
9190 fn : HIRFunction ,
92- env : Environment ,
9391) : Result < void , CompilerError > {
92+ const env = fn . env ;
9493 const reactive = collectReactiveIdentifiersHIR ( fn ) ;
9594
9695 const temporaries : Map < IdentifierId , Temporary > = new Map ( ) ;
You can’t perform that action at this time.
0 commit comments