[ruby-core:32919] [Ruby 1.9-Feature#3908] private constant

From: Tomoyuki Chikanaga <redmine@...>
Date: 2010-10-27 13:30:16 UTC
List: ruby-core #32919
Issue #3908 has been updated by Tomoyuki Chikanaga.


I found a typo in error message in r29603.

Index: variable.c
===================================================================
--- variable.c	(revision 29612)
+++ variable.c	(working copy)
@@ -1895,7 +1895,7 @@
 
     if (rb_safe_level() >= 4 && !OBJ_UNTRUSTED(mod)) {
 	rb_raise(rb_eSecurityError,
-		 "Insecure: can't change method visibility");
+		 "Insecure: can't change constant visibility");
     }
 
     for (i = 0; i < argc; i++) {

----------------------------------------
http://redmine.ruby-lang.org/issues/show/3908

----------------------------------------
http://redmine.ruby-lang.org

In This Thread