Host functions refactoring (#30)

This commit is contained in:
vms
2020-10-01 12:19:38 +03:00
committed by GitHub
parent 8f41f5816b
commit 444e30749e
52 changed files with 2032 additions and 880 deletions

View File

@ -100,7 +100,10 @@ impl WITInstance {
let func = WITFunction::from_import(module, import.name)?;
Ok((start_index + idx as usize, func))
}
None => Err(FCEError::NoSuchModule(import.namespace.to_string())),
None => Err(FCEError::NoSuchModule(format!(
"trying to get imports from module with name {} that is not loaded",
import.namespace
))),
})
.collect::<Result<HashMap<_, _>>>()
}