mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
while|until should have the value from break; fix #3735
This commit is contained in:
@@ -2980,10 +2980,10 @@ loop_break(codegen_scope *s, node *tree)
|
||||
static void
|
||||
loop_pop(codegen_scope *s, int val)
|
||||
{
|
||||
dispatch_linked(s, s->loop->pc3);
|
||||
if (val) {
|
||||
genop(s, MKOP_A(OP_LOADNIL, cursp()));
|
||||
}
|
||||
dispatch_linked(s, s->loop->pc3);
|
||||
s->loop = s->loop->prev;
|
||||
if (val) push();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user