[ruby-cvs:59472] nobu:r52321 (trunk): NameError#receiver of uninitialized constant

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Oct 28 15:24:13 JST 2015


nobu	2015-10-28 15:24:12 +0900 (Wed, 28 Oct 2015)

  New Revision: 52321

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

  Log:
    NameError#receiver of uninitialized constant
    
    * error.c (name_err_mesg_to_str): quote the name if unprintable.
    * object.c (check_setter_id): use rb_check_id to convert names.
    * variable.c (uninitialized_constant): use NameError::message to
      keep the receiver of uninitialized constant.  [Feature #10881]

  Modified files:
    trunk/ChangeLog
    trunk/error.c
    trunk/eval_error.c
    trunk/method.h
    trunk/object.c
    trunk/proc.c
    trunk/range.c
    trunk/struct.c
    trunk/test/ruby/test_exception.rb
    trunk/variable.c
    trunk/vm_method.c


More information about the ruby-cvs mailing list