The VMMemory must be convertable into a JsValue

This commit is contained in:
Johnathan Sharratt
2023-03-01 17:30:00 +11:00
committed by Christoph Herzog
parent 52bf78eb37
commit e2276c1e7e
6 changed files with 20 additions and 13 deletions

View File

@@ -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,