Skip to content

Commit 74d295c

Browse files
committed
wip
I need to dig deeper to explain why this fixes things, in the mean time, test against core CI.
1 parent a671b25 commit 74d295c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm_args.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ setup_parameters_complex(rb_execution_context_t * const ec, const rb_iseq_t * co
895895

896896
if (ISEQ_BODY(iseq)->param.flags.has_rest) {
897897
if (UNLIKELY(ISEQ_BODY(iseq)->param.flags.anon_rest && args->argc == 0 && !args->rest && !ISEQ_BODY(iseq)->param.flags.has_post)) {
898-
*(locals + ISEQ_BODY(iseq)->param.rest_start) = args->rest = rb_cArray_empty_frozen;
898+
*(locals + ISEQ_BODY(iseq)->param.rest_start) = rb_cArray_empty_frozen;
899899
}
900900
else {
901901
args_setup_rest_parameter(args, locals + ISEQ_BODY(iseq)->param.rest_start);

0 commit comments

Comments
 (0)