|
@@ -2630,7 +2630,7 @@ aot_call_function(WASMExecEnv *exec_env, AOTFunctionInstance *function,
|
|
|
ret = invoke_native_internal(exec_env, func_ptr, func_type, NULL,
|
|
ret = invoke_native_internal(exec_env, func_ptr, func_type, NULL,
|
|
|
attachment, argv, argc, argv);
|
|
attachment, argv, argc, argv);
|
|
|
|
|
|
|
|
- if (aot_copy_exception(module_inst, NULL)) {
|
|
|
|
|
|
|
+ if (!ret) {
|
|
|
#ifdef AOT_STACK_FRAME_DEBUG
|
|
#ifdef AOT_STACK_FRAME_DEBUG
|
|
|
if (aot_stack_frame_callback) {
|
|
if (aot_stack_frame_callback) {
|
|
|
aot_stack_frame_callback(exec_env);
|
|
aot_stack_frame_callback(exec_env);
|
|
@@ -2651,7 +2651,7 @@ aot_call_function(WASMExecEnv *exec_env, AOTFunctionInstance *function,
|
|
|
aot_free_frame(exec_env);
|
|
aot_free_frame(exec_env);
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
- return ret && !aot_copy_exception(module_inst, NULL) ? true : false;
|
|
|
|
|
|
|
+ return ret;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|