diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/interp.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interp.cc b/src/interp.cc index bca8de7a..257ca385 100644 --- a/src/interp.cc +++ b/src/interp.cc @@ -1557,7 +1557,7 @@ Result Thread::Run(int num_instructions) { TRAP_UNLESS(env_->FuncSignaturesAreEqual(func->sig_index, sig_index), IndirectCallSignatureMismatch); if (func->is_host) { - CallHost(cast<HostFunc>(func)); + CHECK_TRAP(CallHost(cast<HostFunc>(func))); } else { CHECK_TRAP(PushCall(pc)); GOTO(cast<DefinedFunc>(func)->offset); @@ -1567,7 +1567,7 @@ Result Thread::Run(int num_instructions) { case Opcode::InterpCallHost: { Index func_index = ReadU32(&pc); - CallHost(cast<HostFunc>(env_->funcs_[func_index].get())); + CHECK_TRAP(CallHost(cast<HostFunc>(env_->funcs_[func_index].get()))); break; } |