mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
parse.y: check car part of return node.
This commit is contained in:
@@ -1274,6 +1274,7 @@ ret_args(parser_state *p, node *n)
|
||||
yyerror(p, "block argument should not be given");
|
||||
return NULL;
|
||||
}
|
||||
if (!n->car) return NULL;
|
||||
if (!n->car->cdr) return n->car->car;
|
||||
return new_array(p, n->car);
|
||||
}
|
||||
|
||||
+993
-992
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user