Skip to content

Commit

Permalink
No strict argument check for blocks when keyword arguments exist; ref #…
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Feb 11, 2019
1 parent 55e58d8 commit 639f6e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vm.c
Expand Up @@ -1810,7 +1810,8 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
kdict = argv[argc-1];
mrb_hash_check_kdict(mrb, kdict);
}
else if (r || argc <= m1+m2+o) {
else if (r || argc <= m1+m2+o
|| !(mrb->c->ci->proc && MRB_PROC_STRICT_P(mrb->c->ci->proc))) {
kdict = mrb_hash_new(mrb);
kargs = 0;
}
Expand Down

0 comments on commit 639f6e2

Please sign in to comment.