diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-05-05 14:12:17 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-05-05 14:12:32 +0900 |
| commit | f768af46ab92596a7df60658dd684c751f3c78d1 (patch) | |
| tree | 19967c61cbc0dcd5e39cd30e421feb4c2e5a6d19 /src/Execution/Stack.php | |
| parent | 27cd7cf8f816f1d1dd465c28a43fc0fcd25c48d6 (diff) | |
| download | php-waddiwasi-f768af46ab92596a7df60658dd684c751f3c78d1.tar.gz php-waddiwasi-f768af46ab92596a7df60658dd684c751f3c78d1.tar.zst php-waddiwasi-f768af46ab92596a7df60658dd684c751f3c78d1.zip | |
test: CallTest passed
Diffstat (limited to 'src/Execution/Stack.php')
| -rw-r--r-- | src/Execution/Stack.php | 7 |
1 files changed, 7 insertions, 0 deletions
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(); |
