Fixed code smell on Engine/CompiledModule

This commit is contained in:
Syrus
2020-05-05 17:08:01 -07:00
parent f54735eda9
commit 583df87b8f
5 changed files with 39 additions and 24 deletions

View File

@@ -208,7 +208,10 @@ impl Module {
// of this steps traps, we still need to keep the instance alive
// as some of the Instance elements may have placed in other
// instance tables.
self.compiled.finish_instantiation(&instance_handle)?;
self.store
.engine()
.finish_instantiation(self.compiled.borrow(), &instance_handle)?;
Ok(instance_handle)
}
}