mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* eval.c (rb_mod_modfunc): should break if m has no super class.
[ruby-dev:22498] * backport changes from 1.9 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4e8cfd8b47
commit
c96f53e1aa
9 changed files with 65 additions and 29 deletions
1
eval.c
1
eval.c
|
@ -7055,6 +7055,7 @@ rb_mod_modfunc(argc, argv, module)
|
|||
break; /* normal case: need not to follow 'super' link */
|
||||
}
|
||||
m = RCLASS(m)->super;
|
||||
if (!m) break;
|
||||
}
|
||||
rb_add_method(rb_singleton_class(module), id, body->nd_body, NOEX_PUBLIC);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue