mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 14:18:20 +00:00
Add wip solution to wasm_extern_as_ no allocation
This commit is contained in:
@@ -192,10 +192,7 @@ pub unsafe extern "C" fn wasm_instance_exports(
|
||||
None
|
||||
};
|
||||
|
||||
Box::into_raw(Box::new(wasm_extern_t {
|
||||
instance: Some(Arc::clone(instance)),
|
||||
inner: r#extern.clone(),
|
||||
}))
|
||||
Box::into_raw(Box::new(r#extern.clone().into()))
|
||||
})
|
||||
.collect::<Vec<*mut wasm_extern_t>>();
|
||||
extern_vec.shrink_to_fit();
|
||||
|
||||
Reference in New Issue
Block a user