summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-24 14:06:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-24 14:06:31 +0000
commitd3326ddf1113a0b0788658e5ef6131f2722ab3c4 (patch)
treedfaf4aee22a13609637b194305a8d7820048598b /vm_insnhelper.c
parent0e3822c1e2e81baa96793e881cbbdfc2db7aba3a (diff)
* vm_insnhelper.c (vm_get_ev_const): should not autoload in
defined? mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 3666aed53e..00a21e3669 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1177,6 +1177,7 @@ vm_get_ev_const(rb_thread_t *th, const rb_iseq_t *iseq,
if (val == Qundef) {
if (am == klass) break;
am = klass;
+ if (is_defined) return 1;
rb_autoload_load(klass, id);
goto search_continue;
}