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

* object.c (rb_class_superclass): should not raise exception for

BasicObject.  [ruby-Bugs-15668]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-11-19 08:49:42 +00:00
parent 7a978073c9
commit a2946d85ec
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon Nov 19 17:48:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (rb_class_superclass): should not raise exception for
BasicObject. [ruby-Bugs-15668]
Mon Nov 19 16:04:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_permutation): gives all permutations of elements

View file

@ -1410,6 +1410,7 @@ rb_class_superclass(VALUE klass)
VALUE super = RCLASS_SUPER(klass);
if (!super) {
if (klass == rb_cBasicObject) return Qnil;
rb_raise(rb_eTypeError, "uninitialized class");
}
while (TYPE(super) == T_ICLASS) {