mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
codegen.c: fix a bug in super with keyword arguments; fix #5660
This commit is contained in:
@@ -2972,7 +2972,7 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
}
|
||||
}
|
||||
/* keyword arguments */
|
||||
if (s2 && (s2->ainfo & 0x1) && tree->cdr->car) {
|
||||
if (tree->cdr->car) {
|
||||
nk = gen_hash(s, tree->cdr->car->cdr, VAL, 14);
|
||||
if (nk < 0) {st++; nk = 15;}
|
||||
else st += nk*2;
|
||||
|
||||
Reference in New Issue
Block a user