diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Cargo.toml | 2 | ||||
| -rw-r--r-- | scripts/src/wasm.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Cargo.toml b/scripts/Cargo.toml index a9fe5e4..8854678 100644 --- a/scripts/Cargo.toml +++ b/scripts/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -wasmtime = "15" +wasmtime = "24" rayon = "1" thiserror = "1" rand = "0.8" diff --git a/scripts/src/wasm.rs b/scripts/src/wasm.rs index 06d840f..7f8f0b5 100644 --- a/scripts/src/wasm.rs +++ b/scripts/src/wasm.rs @@ -72,7 +72,7 @@ fn validate_module(module: &Module) -> Result<(), InvalidWasmScript> { let Some(heap_base) = export.global() else {
return Err(InvalidWasmScript::HeapBaseIsNotGlobal);
};
- if *heap_base.content() != ValType::I32 {
+ if heap_base.content().matches(&ValType::I32) {
return Err(InvalidWasmScript::HeapBaseMustBeI32);
}
if heap_base.mutability() != Mutability::Const {
|
