feat(deprecated) Remove debugging statements.

This commit is contained in:
Ivan Enderlin
2020-06-18 10:26:57 +02:00
parent 71629b9a2e
commit c485e0f610
2 changed files with 7 additions and 8 deletions

View File

@@ -21,19 +21,20 @@ impl PreInstance {
// #[derive(Clone)]
pub struct Instance {
pub exports: Exports,
pre_instance: Box<PreInstance>,
pub exports: Exports,
pub(crate) new_instance: new::wasmer::Instance,
// vmctx: vm::Ctx,
}
impl Instance {
pub(crate) fn new(mut pre_instance: Box<PreInstance>, new_instance: new::wasmer::Instance) -> Self {
pre_instance.vmctx.x = 42;
pub(crate) fn new(
mut pre_instance: Box<PreInstance>,
new_instance: new::wasmer::Instance,
) -> Self {
Self {
pre_instance,
exports: new_instance.exports.clone(),
new_instance,
pre_instance,
}
}