mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-13 00:51:20 +00:00
Fix emscripten test usage and fix error conditional
This commit is contained in:
@ -42,7 +42,7 @@ pub fn get_emscripten_table_size(module: &Module) -> Result<(u32, Option<u32>),
|
||||
}
|
||||
|
||||
pub fn get_emscripten_memory_size(module: &Module) -> Result<(Pages, Option<Pages>, bool), String> {
|
||||
if module.info().imported_tables.len() == 0 {
|
||||
if module.info().imported_memories.len() == 0 {
|
||||
return Err("Emscripten requires at least one imported memory".to_string());
|
||||
}
|
||||
let (_, memory) = &module.info().imported_memories[ImportedMemoryIndex::new(0)];
|
||||
|
Reference in New Issue
Block a user