From 675ba20cea54714b90b20ba2e465b92e29ba8360 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 25 May 2013 02:28:51 +0000 Subject: 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 --- vm_method.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index c9f04942e1..fe0df18af5 100644 --- a/vm_method.c +++ b/vm_method.c @@ -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++) { -- cgit v1.2.3