summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index f2bcbf3b56..f1589e25f3 100644
--- a/eval.c
+++ b/eval.c
@@ -345,6 +345,7 @@ rb_longjmp(int tag, volatile VALUE mesg)
if (rb_threadptr_set_raised(th)) {
th->errinfo = exception_error;
+ rb_threadptr_reset_raised(th);
JUMP_TAG(TAG_FATAL);
}