aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2022-08-25 09:28:07 +0200
committerJean Boussier <jean.boussier@gmail.com>2022-08-25 17:49:50 +0200
commitb2d0f788694c680d2abf695358e42d819b11b2ec (patch)
tree2a619ef569573044f02492213f0e41d08ce44a6a /vm_insnhelper.c
parentc2daa056934185641469e27713daf1fbe27552c4 (diff)
downloadruby-b2d0f788694c680d2abf695358e42d819b11b2ec.tar.gz
Fix private methods reported as protected when called via Symbol#to_proc
Ref: bfa6a8ddc84fffe0aef5a0f91b417167e124dbbf Ref: [Bug #18826]
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 68362ddf60..3c41adcdc9 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -3256,6 +3256,7 @@ vm_call_symbol(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp,
return vm_call_method_each_type(ec, reg_cfp, calling);
case METHOD_VISI_PRIVATE:
vm_cc_method_missing_reason_set(cc, MISSING_PRIVATE);
+ break;
case METHOD_VISI_PROTECTED:
vm_cc_method_missing_reason_set(cc, MISSING_PROTECTED);
break;