@@ -142,7 +142,7 @@ VALUE kernel_spec_call_proc_with_raised_exc(VALUE arg_array, VALUE raised_exc) {
142
142
143
143
argc = 2 ;
144
144
145
- return rb_funcall2 (proc , rb_intern ("call" ), argc , argv );
145
+ return rb_funcallv (proc , rb_intern ("call" ), argc , argv );
146
146
}
147
147
148
148
VALUE kernel_spec_rb_rescue (VALUE self , VALUE main_proc , VALUE arg ,
@@ -318,8 +318,8 @@ static VALUE kernel_spec_rb_make_backtrace(VALUE self) {
318
318
return rb_make_backtrace ();
319
319
}
320
320
321
- static VALUE kernel_spec_rb_funcall3 (VALUE self , VALUE obj , VALUE method ) {
322
- return rb_funcall3 (obj , SYM2ID (method ), 0 , NULL );
321
+ static VALUE kernel_spec_rb_funcallv_public (VALUE self , VALUE obj , VALUE method ) {
322
+ return rb_funcallv_public (obj , SYM2ID (method ), 0 , NULL );
323
323
}
324
324
325
325
static VALUE kernel_spec_rb_funcall_with_block (VALUE self , VALUE obj , VALUE method , VALUE block ) {
@@ -371,7 +371,7 @@ void Init_kernel_spec(void) {
371
371
rb_define_method (cls , "rb_set_end_proc" , kernel_spec_rb_set_end_proc , 1 );
372
372
rb_define_method (cls , "rb_f_sprintf" , kernel_spec_rb_f_sprintf , 1 );
373
373
rb_define_method (cls , "rb_make_backtrace" , kernel_spec_rb_make_backtrace , 0 );
374
- rb_define_method (cls , "rb_funcall3 " , kernel_spec_rb_funcall3 , 2 );
374
+ rb_define_method (cls , "rb_funcallv_public " , kernel_spec_rb_funcallv_public , 2 );
375
375
rb_define_method (cls , "rb_funcall_many_args" , kernel_spec_rb_funcall_many_args , 2 );
376
376
rb_define_method (cls , "rb_funcall_with_block" , kernel_spec_rb_funcall_with_block , 3 );
377
377
}
0 commit comments