Skip to content

Commit

Permalink
Drop assert in FizzyEngine
Browse files Browse the repository at this point in the history
Drop assert which checks number of results in not greater than 1.
This is not true for executions resulting in traps, and FizzyEngine
is not the best place to check it.
  • Loading branch information
chfast committed Jun 1, 2020
1 parent 0dbac64 commit b28ad5e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/utils/fizzy_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ WasmEngine::Result FizzyEngine::execute(
{
const auto [trapped, result_stack] =
fizzy::execute(*m_instance, static_cast<uint32_t>(func_ref), args);
assert(result_stack.size() <= 1);
return {trapped, !result_stack.empty() ? result_stack.back() : std::optional<uint64_t>{}};
}
} // namespace fizzy::test

0 comments on commit b28ad5e

Please sign in to comment.