1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:27:35 +00:00

LibWasm: Don't execute the last instruction in the frame after return

This commit is contained in:
Ali Mohammad Pur 2021-06-01 20:10:05 +04:30 committed by Ali Mohammad Pur
parent b250a6ae7e
commit 9a1853c388

View file

@ -449,7 +449,7 @@ void BytecodeInterpreter::interpret(Configuration& configuration, InstructionPoi
configuration.stack().entries().remove(start, end - start);
// Jump past the call/indirect instruction
configuration.ip() = configuration.frame().expression().instructions().size() - 1;
configuration.ip() = configuration.frame().expression().instructions().size();
return;
}
case Instructions::br.value():