mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
no clearing method cache
* variable.c (set_const_visibility): return without clearing method cache if no arguments. * vm_method.c (set_method_visibility): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9abf09133d
commit
675ba20cea
3 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
Sat May 25 11:28:49 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* variable.c (set_const_visibility): return without clearing method
|
||||
cache if no arguments.
|
||||
|
||||
* vm_method.c (set_method_visibility): ditto.
|
||||
|
||||
Sat May 25 11:27:32 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_method.c (set_method_visibility): quote unprintable method name.
|
||||
|
|
|
@ -2232,6 +2232,7 @@ set_const_visibility(VALUE mod, int argc, VALUE *argv, rb_const_flag_t flag)
|
|||
if (argc == 0) {
|
||||
rb_warning("%"PRIsVALUE" with no argument is just ignored",
|
||||
QUOTE_ID(rb_frame_callee()));
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < argc; i++) {
|
||||
|
|
|
@ -1276,6 +1276,7 @@ set_method_visibility(VALUE self, int argc, VALUE *argv, rb_method_flag_t ex)
|
|||
if (argc == 0) {
|
||||
rb_warning("%"PRIsVALUE" with no argument is just ignored",
|
||||
QUOTE_ID(rb_frame_callee()));
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < argc; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue