diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-12 07:29:14 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-12 07:29:14 +0000 |
| commit | ae0b780f881ee2d90b0bc1a6fd57f51b5bc77c56 (patch) | |
| tree | ddec13caafee0c74f16698dcd4d3942798038246 | |
| parent | f249f488835d705aabce6673092b3e80ede05654 (diff) | |
| download | ruby-ae0b780f881ee2d90b0bc1a6fd57f51b5bc77c56.tar.gz ruby-ae0b780f881ee2d90b0bc1a6fd57f51b5bc77c56.tar.xz ruby-ae0b780f881ee2d90b0bc1a6fd57f51b5bc77c56.zip | |
* marshal.c (r_object0): singleton class instance can't be loaded. (ruby-bugs-ja:PR#366)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | marshal.c | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Thu Dec 12 16:26:31 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net> + + * marshal.c (r_object0): singleton class instance can't be loaded. + (ruby-bugs-ja:PR#366) + Wed Dec 11 23:35:43 2002 WATANABE Hirofumi <eban@ruby-lang.org> * ext/extmk.rb (create_makefile): -no-undefined -> --no-undefined. @@ -902,6 +902,9 @@ r_object0(arg, proc) { VALUE c = path2class(r_unique(arg)); + if (FL_TEST(c, FL_SINGLETON)) { + rb_raise(rb_eTypeError, "singleton can't be loaded"); + } v = r_object0(arg, 0); if (rb_special_const_p(v) || TYPE(v) == T_OBJECT || TYPE(v) == T_CLASS) { format_error: |
