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:
parent
b250a6ae7e
commit
9a1853c388
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue