aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 8c8ac947f6..69a15d9985 100644
--- a/eval.c
+++ b/eval.c
@@ -755,6 +755,9 @@ rb_raise_jump(VALUE mesg, VALUE cause)
void
rb_jump_tag(int tag)
{
+ if (UNLIKELY(tag < TAG_RETURN || tag > TAG_FATAL)) {
+ unknown_longjmp_status(tag);
+ }
JUMP_TAG(tag);
}