Skip to content

Commit 2dec105

Browse files
committed
Don't pass env to validator
1 parent 2ce8e3a commit 2dec105

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Pipeline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

compiler/packages/babel-plugin-react-compiler/src/Validation/ValidateExhaustiveDependencies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ const DEBUG = false;
8989
*/
9090
export function validateExhaustiveDependencies(
9191
fn: HIRFunction,
92-
env: Environment,
9392
): Result<void, CompilerError> {
93+
const env = fn.env;
9494
const reactive = collectReactiveIdentifiersHIR(fn);
9595

9696
const temporaries: Map<IdentifierId, Temporary> = new Map();

0 commit comments

Comments
 (0)