diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-05 03:54:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-05 03:54:08 +0000 |
commit | 6b0ac4ae63f630db39549455ff6529abf84b0796 (patch) | |
tree | ac219544b44fe8f1f2f50a482dd150d892e4b19d | |
parent | 0a2b36a99c189d7a7397e1589d161277a4324cc8 (diff) | |
download | ruby-6b0ac4ae63f630db39549455ff6529abf84b0796.tar.gz |
* 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-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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. @@ -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); } |