aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/iseq.c b/iseq.c
index 1b33c559e3..a829089ea4 100644
--- a/iseq.c
+++ b/iseq.c
@@ -2015,8 +2015,10 @@ rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc)
}
rb_ary_push(args, a);
}
- CONST_ID(keyrest, "keyrest");
- rb_ary_push(args, PARAM(iseq->arg_keyword, keyrest));
+ if (!iseq->arg_keyword_check) {
+ CONST_ID(keyrest, "keyrest");
+ rb_ary_push(args, PARAM(iseq->arg_keyword, keyrest));
+ }
}
if (iseq->arg_block != -1) {
CONST_ID(block, "block");