* eval.c (rb_call0): update ruby_frame->argv with the default
value used for the optional arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
457bc261c5
commit
7b5b448a1e
2
eval.c
2
eval.c
@ -5632,7 +5632,6 @@ rb_call0(klass, recv, id, oid, argc, argv, body, nosuper)
|
||||
rb_eval(recv, opt);
|
||||
}
|
||||
}
|
||||
local_vars = ruby_scope->local_vars;
|
||||
if ((long)node->nd_rest >= 0) {
|
||||
VALUE v;
|
||||
|
||||
@ -5642,6 +5641,7 @@ rb_call0(klass, recv, id, oid, argc, argv, body, nosuper)
|
||||
v = rb_ary_new2(0);
|
||||
ruby_scope->local_vars[node->nd_rest] = v;
|
||||
}
|
||||
ruby_frame->argv = ruby_scope->local_vars + 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user