mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
parse.y: fix return/break/next with method call with args and block
This commit is contained in:
@@ -1283,6 +1283,11 @@ call_with_block(parser_state *p, node *a, node *b)
|
||||
if (!n->car) n->car = new_callargs(p, 0, 0, b);
|
||||
else args_with_block(p, n->car, b);
|
||||
break;
|
||||
case NODE_RETURN:
|
||||
case NODE_BREAK:
|
||||
case NODE_NEXT:
|
||||
call_with_block(p, a->cdr, b);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
+1034
-1029
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user