diff --git a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp index 9459806bdc..89e9dff285 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp +++ b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp @@ -138,7 +138,7 @@ void BytecodeInterpreter::call_address(Configuration& configuration, FunctionAdd } configuration.stack().entries().ensure_capacity(configuration.stack().size() + result.values().size()); - for (auto& entry : result.values()) + for (auto& entry : result.values().in_reverse()) configuration.stack().entries().unchecked_append(move(entry)); }