summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-05 06:30:42 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-05 06:30:42 +0000
commitef52ffdf61f7ed1042d8dae2f7c98385b6f7f990 (patch)
treea3f924924f2ecfb32a593b11368d276c0447e518 /marshal.c
parent809a9c5b6d1454e623e929afdf5a878bdb4023dc (diff)
* marshal.c (w_unique): should not dump anonymous class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/marshal.c b/marshal.c
index a7b2efebc6..318292b125 100644
--- a/marshal.c
+++ b/marshal.c
@@ -213,6 +213,9 @@ w_unique(s, arg)
char *s;
struct dump_arg *arg;
{
+ if (s[0] == '#') {
+ rb_raise(rb_eArgError, "can't dump anonymous class %s", s);
+ }
w_symbol(rb_intern(s), arg);
}