Skip to content

Commit 86d79cf

Browse files
mohsen1claude
andcommitted
Fix ThinCheckerState::new and CheckerContext::new function signatures
- Add missing 5th argument (strict: bool = false) to all test calls - Fix calls in thin_checker_tests.rs, declarations.rs, expr.rs, statements.rs Note: 199 remaining errors are pre-existing structural changes to the type system (missing fields in CallableShape/FunctionShape, removed methods, etc.) that require more extensive fixes. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 37e88ae commit 86d79cf

4 files changed

Lines changed: 58 additions & 57 deletions

File tree

wasm/src/checker/declarations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ mod tests {
259259

260260
let types = TypeInterner::new();
261261
let mut ctx =
262-
CheckerContext::new(parser.get_arena(), &binder, &types, "test.ts".to_string());
262+
CheckerContext::new(parser.get_arena(), &binder, &types, "test.ts".to_string(), false);
263263

264264
// Get the variable statement
265265
if let Some(root_node) = parser.get_arena().get(root) {

wasm/src/checker/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ mod tests {
102102

103103
let types = TypeInterner::new();
104104
let mut ctx =
105-
CheckerContext::new(parser.get_arena(), &binder, &types, "test.ts".to_string());
105+
CheckerContext::new(parser.get_arena(), &binder, &types, "test.ts".to_string(), false);
106106

107107
// Get the expression statement and its expression
108108
if let Some(root_node) = parser.get_arena().get(root) {

wasm/src/checker/statements.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ mod tests {
172172

173173
let types = TypeInterner::new();
174174
let mut ctx =
175-
CheckerContext::new(parser.get_arena(), &binder, &types, "test.ts".to_string());
175+
CheckerContext::new(parser.get_arena(), &binder, &types, "test.ts".to_string(), false);
176176

177177
// Get the block statement
178178
if let Some(root_node) = parser.get_arena().get(root) {

0 commit comments

Comments
 (0)