aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Execution/Runtime.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Execution/Runtime.php')
-rw-r--r--src/Execution/Runtime.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Execution/Runtime.php b/src/Execution/Runtime.php
index 5b97be3..53a0e8d 100644
--- a/src/Execution/Runtime.php
+++ b/src/Execution/Runtime.php
@@ -2416,10 +2416,10 @@ final class Runtime
$instrs = $instr->body;
$f = $this->stack->currentFrame();
$bt = self::expandBlockType($blockType, $f->module);
- $params = array_reverse($this->stack->popNValues(count($bt->params->types)));
$m = count($bt->params->types);
$l = new Label($m);
while (true) {
+ $params = array_reverse($this->stack->popNValues($m));
$result = $this->execInstrs($instrs, $l, $params);
if ($result === null) {
return null;