diff options
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(); |
