Skip to content

Commit 67cd504

Browse files
palchikovloganek
authored andcommitted
initial
1 parent 41b2c6d commit 67cd504

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/iwasm/aot/aot_runtime.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2630,7 +2630,7 @@ aot_call_function(WASMExecEnv *exec_env, AOTFunctionInstance *function,
26302630
ret = invoke_native_internal(exec_env, func_ptr, func_type, NULL,
26312631
attachment, argv, argc, argv);
26322632

2633-
if (aot_copy_exception(module_inst, NULL)) {
2633+
if (!ret) {
26342634
#ifdef AOT_STACK_FRAME_DEBUG
26352635
if (aot_stack_frame_callback) {
26362636
aot_stack_frame_callback(exec_env);
@@ -2651,7 +2651,7 @@ aot_call_function(WASMExecEnv *exec_env, AOTFunctionInstance *function,
26512651
aot_free_frame(exec_env);
26522652
#endif
26532653

2654-
return ret && !aot_copy_exception(module_inst, NULL) ? true : false;
2654+
return ret;
26552655
}
26562656
}
26572657

0 commit comments

Comments
 (0)