[ruby-cvs:69252] nobu:r62071 (trunk): defined? returns nil for toplevel constant lookup

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Jan 27 15:12:09 JST 2018


nobu	2018-01-27 15:12:09 +0900 (Sat, 27 Jan 2018)

  New Revision: 62071

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62071

  Log:
    defined? returns nil for toplevel constant lookup
    
    * variable.c (rb_const_defined_0): toplevel constant lookup has
      been removed, should return nil too.
      [ruby-core:85142] [Bug #14407] [Fix GH-1800]
    
    From: Gonzalo <grzuy0 at gmail.com>

  Modified files:
    trunk/spec/ruby/language/defined_spec.rb
    trunk/test/ruby/test_defined.rb
    trunk/variable.c


More information about the ruby-cvs mailing list