diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-26 05:01:13 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-26 05:01:13 +0000 |
| commit | bf1bb16236c16795ca0c122ab36eba025349d6ba (patch) | |
| tree | dc3b4e54fb7a6e6bd9647440009931f8c1d6a230 | |
| parent | 682f44e5bae220ae331130c9b67567cb9505679a (diff) | |
| download | ruby-bf1bb16236c16795ca0c122ab36eba025349d6ba.tar.gz ruby-bf1bb16236c16795ca0c122ab36eba025349d6ba.tar.xz ruby-bf1bb16236c16795ca0c122ab36eba025349d6ba.zip | |
* eval.c (method_missing): raise TypeError for classes do not
have allocators. [ruby-core:03752]
* lib/erb.rb: [ruby-core:03786]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | eval.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +Fri Nov 26 13:49:06 2004 Yukihiro Matsumoto <matz@ruby-lang.org> + + * eval.c (method_missing): raise TypeError for classes do not + have allocators. [ruby-core:03752] + + * lib/erb.rb: [ruby-core:03786] + Fri Nov 26 13:29:02 2004 Dave Thomas <dave@pragprog.com> * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::look_for_directives_in): Break @@ -5352,7 +5352,7 @@ method_missing(obj, id, argc, argv, call_status) POP_FRAME(); } else if (id == ID_ALLOCATOR) { - rb_raise(rb_eNoMethodError, "allocator undefined for %s", rb_class2name(obj)); + rb_raise(rb_eTypeError, "allocator undefined for %s", rb_class2name(obj)); } nargv = ALLOCA_N(VALUE, argc+1); |
