summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/eval.c b/eval.c
index c4cd1ac05c..5746d60d8f 100644
--- a/eval.c
+++ b/eval.c
@@ -7000,13 +7000,11 @@ proc_invoke(proc, args, self, klass)
state == TAG_BREAK ? "break" : "return");
localjump_error(mesg, prot_tag->retval, state);
}
- else {
+ else if (state == incoming_state) {
ruby_block->tag->dst = incoming_state;
- JUMP_TAG(incoming_state);
}
- break;
default:
- JUMP_TAG(incoming_state);
+ JUMP_TAG(state);
}
return result;
}