1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* variable.c (uninitialized_constant): process through

rb_class_real() to remove "Object::" from error message.
  [ruby-dev:40951]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2010-06-12 00:20:27 +00:00
parent fbfd5fdcb0
commit ff0252701e
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Sat Jun 12 09:18:31 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
* variable.c (uninitialized_constant): process through
rb_class_real() to remove "Object::" from error message.
[ruby-dev:40951]
Sat Jun 12 00:38:37 2010 Yusuke Endoh <mame@tsg.ne.jp>
* ext/dbm/extconf.rb: accept Berkley DB version 3, 4 and 5.

View file

@ -1345,7 +1345,7 @@ NORETURN(static void uninitialized_constant(VALUE, ID));
static void
uninitialized_constant(VALUE klass, ID id)
{
if (klass && klass != rb_cObject)
if (klass && rb_class_real(klass) != rb_cObject)
rb_name_error(id, "uninitialized constant %s::%s",
rb_class2name(klass),
rb_id2name(id));