summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-25 11:30:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-25 11:30:15 +0000
commit4398093755824d8aa24095e97c70c5b700989362 (patch)
tree71c50337467e2fea2ef58b8f6a2a48ef277e5238 /iseq.c
parent7fd58845d907d218538a39d829ccb4090c784618 (diff)
iseq.c: fix parameter of unnamed rest keywords argument
* iseq.c (rb_iseq_parameters): push argument type symbol only for unnamed rest keywords argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/iseq.c b/iseq.c
index 679bdb7a2d..1b33c559e3 100644
--- a/iseq.c
+++ b/iseq.c
@@ -2015,10 +2015,8 @@ rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc)
}
rb_ary_push(args, a);
}
- if (rb_id2str(iseq->local_table[iseq->arg_keyword])) {
- CONST_ID(keyrest, "keyrest");
- rb_ary_push(args, PARAM(iseq->arg_keyword, keyrest));
- }
+ CONST_ID(keyrest, "keyrest");
+ rb_ary_push(args, PARAM(iseq->arg_keyword, keyrest));
}
if (iseq->arg_block != -1) {
CONST_ID(block, "block");