Fix reseting of the heap when compiling a module containing multiple functions.
This commit is contained in:
@@ -334,6 +334,7 @@ impl WasmRuntime for Runtime {
|
|||||||
self.has_current_memory = None;
|
self.has_current_memory = None;
|
||||||
self.has_grow_memory = None;
|
self.has_grow_memory = None;
|
||||||
self.func_indices.clear();
|
self.func_indices.clear();
|
||||||
|
self.the_heap = PackedOption::default();
|
||||||
}
|
}
|
||||||
fn declare_global(&mut self, global: Global) {
|
fn declare_global(&mut self, global: Global) {
|
||||||
debug_assert!(!self.instantiated);
|
debug_assert!(!self.instantiated);
|
||||||
|
|||||||
Reference in New Issue
Block a user