summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-05 03:54:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-05 03:54:08 +0000
commit6b0ac4ae63f630db39549455ff6529abf84b0796 (patch)
treeac219544b44fe8f1f2f50a482dd150d892e4b19d
parent0a2b36a99c189d7a7397e1589d161277a4324cc8 (diff)
* eval.c (rb_exc_raise, rb_exc_fatal): require exception object.
[ruby-core:24767] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--eval.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 738b45a2a05..4451ca8adbb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Aug 5 12:54:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_exc_raise, rb_exc_fatal): require exception object.
+ [ruby-core:24767]
+
Wed Aug 5 12:39:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_longjmp): reset raised flag before fatal error.
diff --git a/eval.c b/eval.c
index f1589e25f3c..35669c8395d 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);
}