mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 21:28:21 +00:00
Merge branch 'master' into trace-issue
This commit is contained in:
8
lib/api/src/externals/function.rs
vendored
8
lib/api/src/externals/function.rs
vendored
@@ -177,18 +177,14 @@ impl Function {
|
||||
let signature = self.ty();
|
||||
if signature.params().len() != params.len() {
|
||||
return Err(RuntimeError::new(format!(
|
||||
"expected {} arguments, got {}: Parameters of type [{}] did not match signature {}",
|
||||
signature.params().len(),
|
||||
params.len(),
|
||||
"Parameters of type [{}] did not match signature {}",
|
||||
format_types_for_error_message(params),
|
||||
&signature
|
||||
)));
|
||||
}
|
||||
if signature.results().len() != results.len() {
|
||||
return Err(RuntimeError::new(format!(
|
||||
"expected {} results, got {}: Results of type [{}] did not match signature {}",
|
||||
signature.results().len(),
|
||||
results.len(),
|
||||
"Results of type [{}] did not match signature {}",
|
||||
format_types_for_error_message(results),
|
||||
&signature,
|
||||
)));
|
||||
|
||||
Reference in New Issue
Block a user