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 f1589e25f3..35669c8395 100644
--- a/eval.c
+++ b/eval.c
@@ -413,12 +413,14 @@ rb_longjmp(int tag, volatile VALUE mesg)
void
rb_exc_raise(VALUE mesg)
{
+ mesg = rb_make_exception(1, &mesg);
rb_longjmp(TAG_RAISE, mesg);
}
void
rb_exc_fatal(VALUE mesg)
{
+ mesg = rb_make_exception(1, &mesg);
rb_longjmp(TAG_FATAL, mesg);
}