aboutsummaryrefslogtreecommitdiffstats
path: root/insnhelper.ci
diff options
context:
space:
mode:
Diffstat (limited to 'insnhelper.ci')
-rw-r--r--insnhelper.ci3
1 files changed, 2 insertions, 1 deletions
diff --git a/insnhelper.ci b/insnhelper.ci
index afb0bd0e76..d067903ad8 100644
--- a/insnhelper.ci
+++ b/insnhelper.ci
@@ -537,7 +537,8 @@ vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp,
}
val = vm_method_missing(th, id, recv, num, blockptr, stat);
}
- else if ((mn->nd_noex & NOEX_MASK) & NOEX_PROTECTED) {
+ else if (((mn->nd_noex & NOEX_MASK) & NOEX_PROTECTED) &&
+ !(flag & VM_CALL_SEND_BANG_BIT)) {
VALUE defined_class = mn->nd_clss;
if (TYPE(defined_class) == T_ICLASS) {