diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-13 13:00:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-13 13:00:17 +0000 |
commit | 8fe3fb4c0f69535b302e124f3afc58dce4be5dbb (patch) | |
tree | e9f4735377f581a28a4d472f8c16a96d191b6a38 /vm_insnhelper.c | |
parent | d6a977f667f9d824cfe95976f3afc31e55580edb (diff) | |
download | ruby-8fe3fb4c0f69535b302e124f3afc58dce4be5dbb.tar.gz |
* compile.c (iseq_set_arguments): keyword rest arg without keyword args.
* node.c (dump_node): dump kw_rest_arg too.
* parse.y (block_param, f_arg): more kwrest patterns.
[ruby-core:42455][Bug #5989]
* parse.y (new_args_gen): no extra kw_rest_arg if no keyword rest arg.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index a123171580..5f7de4a199 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -177,7 +177,7 @@ vm_callee_setup_arg_complex(rb_thread_t *th, const rb_iseq_t * iseq, if (iseq->arg_keyword != -1) { int i, j; - if (argc > 0) keyword_hash = rb_check_convert_type(argv[argc-1], T_HASH, "Hash", "to_hash"); + if (argc > 0) keyword_hash = rb_check_hash_type(argv[argc-1]); if (!NIL_P(keyword_hash)) { argc--; keyword_hash = rb_hash_dup(keyword_hash); |