mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Adjust stack position of NODE_RESCUE.
This commit is contained in:
@@ -1083,6 +1083,7 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
}
|
||||
if (n3->cdr->cdr->car) {
|
||||
codegen(s, n3->cdr->cdr->car, val);
|
||||
if (val) pop();
|
||||
}
|
||||
tmp = new_label(s);
|
||||
genop(s, MKOP_sBx(OP_JMP, exend));
|
||||
@@ -1102,6 +1103,9 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
if (tree->car) {
|
||||
codegen(s, tree->car, val);
|
||||
}
|
||||
else if (val) {
|
||||
push();
|
||||
}
|
||||
dispatch_linked(s, exend);
|
||||
loop_pop(s, NOVAL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user