mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-13 00:51:20 +00:00
fix 653 panic in memoryDescriptor
This commit is contained in:
@ -473,11 +473,7 @@ impl EmscriptenGlobals {
|
||||
let (memory_min, memory_max, shared) = get_emscripten_memory_size(&module)?;
|
||||
|
||||
// Memory initialization
|
||||
let memory_type = MemoryDescriptor {
|
||||
minimum: memory_min,
|
||||
maximum: memory_max,
|
||||
shared: shared,
|
||||
};
|
||||
let memory_type = MemoryDescriptor::new(memory_min, memory_max, shared)?;
|
||||
let memory = Memory::new(memory_type).unwrap();
|
||||
|
||||
let table_type = TableDescriptor {
|
||||
|
Reference in New Issue
Block a user