mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibWasm: Trap instead of VERIFY()'ing
...unless something really is an assertion.
This commit is contained in:
parent
b3c13c3e8a
commit
541091500c
3 changed files with 144 additions and 81 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue