* eval.c (rb_mod_define_method): initialize orig_func too.
(ruby-bugs-ja:PR#330) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fe06b5a0e9
commit
bb34d7163d
@ -1,3 +1,8 @@
|
|||||||
|
Wed Sep 11 00:41:10 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
|
* eval.c (rb_mod_define_method): initialize orig_func too.
|
||||||
|
(ruby-bugs-ja:PR#330)
|
||||||
|
|
||||||
Tue Sep 10 23:35:46 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
Tue Sep 10 23:35:46 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
* parse.y (nextc): restore line number after here documents.
|
* parse.y (nextc): restore line number after here documents.
|
||||||
|
1
eval.c
1
eval.c
@ -7136,6 +7136,7 @@ rb_mod_define_method(argc, argv, mod)
|
|||||||
body = bind_clone(body);
|
body = bind_clone(body);
|
||||||
Data_Get_Struct(body, struct BLOCK, block);
|
Data_Get_Struct(body, struct BLOCK, block);
|
||||||
block->frame.last_func = id;
|
block->frame.last_func = id;
|
||||||
|
block->frame.orig_func = id;
|
||||||
block->frame.last_class = mod;
|
block->frame.last_class = mod;
|
||||||
node = NEW_BMETHOD(body);
|
node = NEW_BMETHOD(body);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user