Skip to content

Commit 32a67a1

Browse files
authored
Merge pull request #145 from pulseengine/fix/wast-validation-improvements-v3
fix: WAST validation improvements v3 — SIMD, GC refs, section ordering, const exprs
2 parents cc57a31 + 122b16f commit 32a67a1

File tree

30 files changed

+4342
-736
lines changed

30 files changed

+4342
-736
lines changed

kiln-build-core/src/wast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ impl WastTestRunner {
478478
modifies_engine_state: true,
479479
result: TestResult::Failed,
480480
error_message: Some(format!(
481-
"Module instantiation failed: {}",
481+
"Module instantiation failed: {:#}",
482482
e
483483
)),
484484
})
@@ -597,7 +597,7 @@ impl WastTestRunner {
597597
requires_module_state: false,
598598
modifies_engine_state: true,
599599
result: TestResult::Failed,
600-
error_message: Some(format!("Module instantiation failed: {}", e)),
600+
error_message: Some(format!("Module instantiation failed: {:#}", e)),
601601
})
602602
},
603603
}

kiln-build-core/src/wast_execution.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl WastEngine {
6363

6464
// Validate the module before proceeding (Phase 1 of WAST conformance)
6565
crate::wast_validator::WastModuleValidator::validate(&kiln_module)
66-
.map_err(|e| anyhow::anyhow!("Module validation failed: {:?}", e))?;
66+
.map_err(|e| anyhow::anyhow!("Module validation failed: {:#}", e))?;
6767

6868
// Convert KilnModule to RuntimeModule
6969
// Wrap in Arc immediately to avoid clone() which loses BoundedMap data
@@ -436,6 +436,7 @@ impl WastEngine {
436436
let spectest_table_type = TableType {
437437
element_type: RefType::Funcref,
438438
limits: Limits { min: 10, max: Some(20) },
439+
table64: false,
439440
};
440441
let table = Table::new(spectest_table_type).map_err(|e| {
441442
anyhow::anyhow!("Failed to create spectest table: {:?}", e)

0 commit comments

Comments
 (0)