mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
merge revision(s) r44628: [Backport #9413]
* eval.c (rb_mod_s_constants): return its own constants for other than Module itself. [ruby-core:59763] [Bug #9413] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bdcadb8c44
commit
37e3fd8802
4 changed files with 21 additions and 3 deletions
4
eval.c
4
eval.c
|
@ -377,8 +377,8 @@ rb_mod_s_constants(int argc, VALUE *argv, VALUE mod)
|
|||
VALUE cbase = 0;
|
||||
void *data = 0;
|
||||
|
||||
if (argc > 0) {
|
||||
return rb_mod_constants(argc, argv, rb_cModule);
|
||||
if (argc > 0 || mod != rb_cModule) {
|
||||
return rb_mod_constants(argc, argv, mod);
|
||||
}
|
||||
|
||||
while (cref) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue