diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed Jan 28 22:51:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * eval.c (rb_mod_modfunc): method undefined in included module + may not have nd_body. [ruby-core:18738] + Wed Jan 28 20:53:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * marshal.c (marshal_dump): fixed for check_dump_arg. @@ -7697,7 +7697,7 @@ rb_mod_modfunc(argc, argv, module) body = search_method(rb_cObject, id, &m); } if (body == 0 || body->nd_body == 0) { - rb_bug("undefined method `%s'; can't happen", rb_id2name(id)); + print_undef(module, id); } if (nd_type(body->nd_body) != NODE_ZSUPER) { break; /* normal case: need not to follow 'super' link */ @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2009-01-28" #define RUBY_VERSION_CODE 187 #define RUBY_RELEASE_CODE 20090128 -#define RUBY_PATCHLEVEL 99 +#define RUBY_PATCHLEVEL 100 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |