mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-27 07:31:33 +00:00
Add special error types for compile, linking, and runtime errors. (#99)
* Add error types and convert most results to wasmer-runtime results * Fix spectests * Fix umbrella project to work with new error types
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
use crate::{
|
||||
backend::FuncResolver,
|
||||
error::Result,
|
||||
import::Imports,
|
||||
sig_registry::SigRegistry,
|
||||
structures::Map,
|
||||
@ -47,7 +48,7 @@ impl Module {
|
||||
}
|
||||
|
||||
/// Instantiate a webassembly module with the provided imports.
|
||||
pub fn instantiate(&self, imports: Imports) -> Result<Instance, String> {
|
||||
pub fn instantiate(&self, imports: Imports) -> Result<Instance> {
|
||||
Instance::new(Rc::clone(&self.0), Box::new(imports))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user