From f768af46ab92596a7df60658dd684c751f3c78d1 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 5 May 2024 14:12:17 +0900 Subject: test: CallTest passed --- src/Execution/Stack.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Execution/Stack.php') diff --git a/src/Execution/Stack.php b/src/Execution/Stack.php index 6d2a2aa..dfecfec 100644 --- a/src/Execution/Stack.php +++ b/src/Execution/Stack.php @@ -68,6 +68,13 @@ final class Stack $this->pushValue(Ref::RefExtern($addr)); } + public function clear(): void + { + $this->frames = []; + $this->currentFrame = null; + $this->entries = []; + } + public function popFrame(): Frame { $result = $this->pop(); -- cgit v1.2.3-70-g09d2