mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-12 13:28:49 +00:00
The VMMemory must be convertable into a JsValue
This commit is contained in:
committed by
Christoph Herzog
parent
52bf78eb37
commit
e2276c1e7e
@@ -109,6 +109,12 @@ impl VMMemory {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<VMMemory> for JsValue {
|
||||
fn from(value: VMMemory) -> Self {
|
||||
JsValue::from(value.memory)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct VMGlobal {
|
||||
pub(crate) global: Global,
|
||||
|
||||
Reference in New Issue
Block a user