LibWasm: Don't execute the last instruction in the frame after return
This commit is contained in:
parent
b250a6ae7e
commit
9a1853c388
Notes:
sideshowbarker
2024-07-18 17:01:16 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/9a1853c3880 Pull-request: https://github.com/SerenityOS/serenity/pull/7670
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
Reference in a new issue