Improved export signatures

This commit is contained in:
Syrus
2020-05-20 22:39:25 -07:00
parent 7be1b167f9
commit 6a706f151e
7 changed files with 37 additions and 45 deletions

View File

@@ -222,9 +222,11 @@ impl Module {
resolver: &dyn Resolver,
) -> Result<InstanceHandle, InstantiationError> {
unsafe {
let instance_handle =
self.artifact
.instantiate(self.store.engine().as_ref(), resolver, Box::new(()))?;
let instance_handle = self.artifact.instantiate(
self.store.engine().tunables(),
resolver,
Box::new(()),
)?;
// After the instance handle is created, we need to initialize
// the data, call the start function and so. However, if any