summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index a0efea26dc..5f053ab313 100644
--- a/eval.c
+++ b/eval.c
@@ -2622,6 +2622,7 @@ rb_longjmp(tag, mesg, at)
str_freeze(errinfo);
}
+ trap_restore_mask();
JUMP_TAG(tag);
}
@@ -6156,6 +6157,7 @@ f_throw(argc, argv)
if (!tt) {
NameError("uncaught throw `%s'", rb_id2name(t));
}
+ trap_restore_mask();
JUMP_TAG(TAG_THROW);
/* not reached */
}