mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
should handle break in rescue
This commit is contained in:
@@ -2146,6 +2146,9 @@ loop_break(codegen_scope *s, node *tree)
|
||||
genop_peep(s, MKOP_A(OP_POPERR, 1), NOVAL);
|
||||
loop = loop->prev;
|
||||
}
|
||||
while (loop->type == LOOP_RESCUE) {
|
||||
loop = loop->prev;
|
||||
}
|
||||
if (loop->type == LOOP_NORMAL) {
|
||||
int tmp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user