summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 7cc68613a3..56f33baabe 100644
--- a/eval.c
+++ b/eval.c
@@ -7035,7 +7035,7 @@ proc_invoke(proc, args, self, klass)
proc_set_safe_level(proc);
result = rb_yield_0(args, self, self!=Qundef?CLASS_OF(self):0, pcall, Qtrue);
}
- else if (pcall || TAG_DST()) {
+ else if (pcall || orphan || TAG_DST()) {
result = prot_tag->retval;
}
POP_TAG();