mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-11 07:08:21 +00:00
feat(deprecated) Add Ctx.module_info.
This commit is contained in:
@@ -38,6 +38,13 @@ pub struct Instance {
|
||||
|
||||
impl Instance {
|
||||
pub(crate) fn new(pre_instance: Box<PreInstance>, new_instance: new::wasmer::Instance) -> Self {
|
||||
// Initialize the `vm::Ctx`
|
||||
{
|
||||
let mut vmctx = pre_instance.vmctx.borrow_mut();
|
||||
|
||||
vmctx.module_info = new_instance.module().info() as *const _;
|
||||
}
|
||||
|
||||
Self {
|
||||
pre_instance,
|
||||
exports: new_instance.exports.clone().into(),
|
||||
|
||||
Reference in New Issue
Block a user