mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* object.c (rb_mod_initialize): since module_eval no longer passes
self, use module_exec instead. fixed: [ruby-dev:29637] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dd529e9804
commit
4632511aa9
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Oct 7 11:53:04 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* object.c (rb_mod_initialize): since module_eval no longer passes
|
||||
self, use module_exec instead. fixed: [ruby-dev:29637]
|
||||
|
||||
Sat Oct 7 00:27:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* class.c (rb_include_module): remove unnecessary check.
|
||||
|
|
2
object.c
2
object.c
|
@ -1205,7 +1205,7 @@ static VALUE
|
|||
rb_mod_initialize(VALUE module)
|
||||
{
|
||||
if (rb_block_given_p()) {
|
||||
rb_mod_module_eval(0, 0, module);
|
||||
rb_mod_module_exec(1, &module, module);
|
||||
}
|
||||
return Qnil;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue