From 8427ecf7a43cec7aff53b1c52ad83a255ed86b66 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 5 Oct 2001 06:30:42 +0000 Subject: * marshal.c (w_unique): should not dump anonymous class. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- marshal.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'marshal.c') diff --git a/marshal.c b/marshal.c index a7b2efebc..318292b12 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); } -- cgit