From 0167a7379ecb354081fb20d51ece66d78e13e1d7 Mon Sep 17 00:00:00 2001 From: clearloop Date: Wed, 6 Jan 2021 11:28:26 +0800 Subject: [PATCH] fix(runner): put back UnexpectedSignature error to ty mismatch --- src/runner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner.rs b/src/runner.rs index bca33601b7..0c746ad352 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -328,7 +328,7 @@ impl Interpreter { let value_ty = return_val.as_ref().map(|val| val.value_type()); let expected_ty = nested_func.signature().return_type(); if value_ty != expected_ty { - return Err(TrapKind::StackOverflow.into()); + return Err(TrapKind::UnexpectedSignature.into()); } if let Some(return_val) = return_val {