mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
LibWasm: Push call results back in reverse order to preserve stack order
This commit is contained in:
committed by
Ali Mohammad Pur
parent
6760ea33a0
commit
846b2c8a99
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user