mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-13 13:58:38 +00:00
Improved memory type
This commit is contained in:
4
lib/js-api/src/externals/memory.rs
vendored
4
lib/js-api/src/externals/memory.rs
vendored
@@ -97,7 +97,9 @@ impl Memory {
|
||||
/// assert_eq!(m.ty(), mt);
|
||||
/// ```
|
||||
pub fn ty(&self) -> MemoryType {
|
||||
self.vm_memory.ty.clone()
|
||||
let mut ty = self.vm_memory.ty.clone();
|
||||
ty.minimum = self.size();
|
||||
ty
|
||||
}
|
||||
|
||||
/// Returns the [`Store`] where the `Memory` belongs.
|
||||
|
||||
Reference in New Issue
Block a user