fix(api) Restore the unimplemented! macro.

This commit is contained in:
Ivan Enderlin
2020-06-09 15:50:54 +02:00
parent 2dddfc8b39
commit 88ea49564b

View File

@@ -252,12 +252,14 @@ impl Function {
/// call the trampoline.
pub fn call(&self, params: &[Val]) -> Result<Box<[Val]>, RuntimeError> {
let mut results = vec![Val::null(); self.result_arity()];
match &self.definition {
FunctionDefinition::Wasm(wasm) => {
self.call_wasm(&wasm, params, &mut results)?;
}
_ => {} // _ => unimplemented!("The host is unimplemented"),
_ => unimplemented!("The function definition isn't supported for the moment"),
}
Ok(results.into_boxed_slice())
}