From 08f7f3f5412835b24dd681c9d9b56f0459750345 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 27 Apr 2024 18:53:59 +0900 Subject: fix: reverse invoke()'s results --- src/Execution/Runtime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Execution/Runtime.php b/src/Execution/Runtime.php index c64f039..468b712 100644 --- a/src/Execution/Runtime.php +++ b/src/Execution/Runtime.php @@ -189,7 +189,7 @@ final class Runtime $results[] = $this->stack->popValue(); } $this->stack->popFrame(); - return $results; + return array_reverse($results); } public function invokeByFuncAddr(int $funcAddr): void -- cgit v1.2.3-70-g09d2