diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-10-05 06:30:42 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-10-05 06:30:42 +0000 |
commit | 8427ecf7a43cec7aff53b1c52ad83a255ed86b66 (patch) | |
tree | a3f924924f2ecfb32a593b11368d276c0447e518 /marshal.c | |
parent | 546e9319116bce06a521036a98c153f73cac6bb2 (diff) | |
download | ruby-8427ecf7a43cec7aff53b1c52ad83a255ed86b66.tar.gz ruby-8427ecf7a43cec7aff53b1c52ad83a255ed86b66.tar.xz ruby-8427ecf7a43cec7aff53b1c52ad83a255ed86b66.zip |
* 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
Diffstat (limited to 'marshal.c')
-rw-r--r-- | marshal.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |