LibWasm: Trap instead of VERIFY()'ing

...unless something really is an assertion.
This commit is contained in:
Ali Mohammad Pur 2021-05-07 09:59:18 +04:30 committed by Linus Groh
commit 541091500c
Notes: sideshowbarker 2024-07-18 17:39:54 +09:00
3 changed files with 144 additions and 81 deletions

View file

@ -59,6 +59,8 @@ Result Configuration::execute()
{
Interpreter interpreter;
interpreter.interpret(*this);
if (interpreter.did_trap())
return Trap {};
Vector<NonnullOwnPtr<Value>> results;
for (size_t i = 0; i < m_current_frame->arity(); ++i)