aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-16 08:33:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-16 08:33:35 +0000
commitc01aaf60a5ae218a2a2b4de0788553a97519190c (patch)
tree1140490c3ff862b1984856d99760de8306c84985 /eval.c
parent30a5ce7345d314541d2f2013dd3a771c16feee26 (diff)
downloadruby-c01aaf60a5ae218a2a2b4de0788553a97519190c.tar.gz
id.def: move IDs for exception
* defs/id.def: add :mesg and :exception and move from other sources. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index 451588bbd9..1494e1db8a 100644
--- a/eval.c
+++ b/eval.c
@@ -688,7 +688,6 @@ static VALUE
make_exception(int argc, const VALUE *argv, int isstr)
{
VALUE mesg, exc;
- ID exception;
int n;
mesg = Qnil;
@@ -715,8 +714,7 @@ make_exception(int argc, const VALUE *argv, int isstr)
n = 1;
exception_call:
if (sysstack_error_p(exc)) return exc;
- CONST_ID(exception, "exception");
- mesg = rb_check_funcall(exc, exception, n, argv+1);
+ mesg = rb_check_funcall(exc, idException, n, argv+1);
if (mesg == Qundef) {
rb_raise(rb_eTypeError, "exception class/object expected");
}