merges r21925 from trunk into ruby_1_9_1.

* variable.c (rb_const_get_0), vm_insnhelper.c (vm_get_ev_const):
  avoids infinite self recursion autoload.  [ruby-core:21696]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2009-02-02 08:07:15 +00:00
parent 045c0422ac
commit db2f9b17e3
4 changed files with 19 additions and 0 deletions

View file

@ -59,3 +59,11 @@ assert_equal 'okok', %q{
[t1.value, t2.value].join
}
assert_finish 5, %q{
autoload :ZZZ, File.expand_path(__FILE__)
begin
ZZZ
rescue NameError
end
}, '[ruby-core:21696]'