Permalink
Browse files

Clear block arg when method_missing takes *args.

  • Loading branch information...
matz committed Feb 27, 2017
1 parent 9e93d5d commit d219e63a74b4d264c3c71a477c1813f23ff1f771
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/vm.c
View
@@ -1190,6 +1190,7 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
mid = missing;
if (n == CALL_MAXARGS-1) {
regs[a+1] = mrb_ary_new_from_values(mrb, n, regs+a+1);
SET_NIL_VALUE(regs[bidx]);
n++;
}
if (n == CALL_MAXARGS) {

0 comments on commit d219e63

Please sign in to comment.