mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Needed to apply block from safe-navigation operators; fix #3310
This commit is contained in:
@@ -871,6 +871,7 @@ call_with_block(parser_state *p, node *a, node *b)
|
||||
break;
|
||||
case NODE_CALL:
|
||||
case NODE_FCALL:
|
||||
case NODE_SCALL:
|
||||
n = a->cdr->cdr->cdr;
|
||||
if (!n->car) n->car = cons(0, b);
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user