From 5b74e4f09ef4f10e5574a02f26a893569c99c945 Mon Sep 17 00:00:00 2001 From: mame Date: Sat, 29 Jan 2011 02:01:19 +0000 Subject: * vm_insnhelper.c (vm_get_ev_const): no-scope reference to toplevel private constant has been prohibited incorrectly. * test/ruby/test_module.rb (test_toplevel_private_constant): add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm_insnhelper.c') diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 94d6a87920..8cd066f532 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1199,10 +1199,10 @@ vm_get_ev_const(rb_thread_t *th, const rb_iseq_t *iseq, } if (is_defined) { - return rb_public_const_defined(klass, id); + return rb_const_defined(klass, id); } else { - return rb_public_const_get(klass, id); + return rb_const_get(klass, id); } } else { -- cgit v1.2.3