[ruby-cvs:69967] nobu:r62833 (trunk): compile.c: arg var index

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Mar 19 13:08:19 JST 2018


nobu	2018-03-19 13:08:19 +0900 (Mon, 19 Mar 2018)

  New Revision: 62833

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

  Log:
    compile.c: arg var index
    
    * compile.c (iseq_set_arguments): determine argument variable
      indexes by the order, not by just IDs.  arguments begin with `_`
      can be duplicate, so by-ID index may result in a wrong value.
      [ruby-core:86159] [Bug #14611]

  Modified files:
    trunk/compile.c
    trunk/test/ruby/test_syntax.rb


More information about the ruby-cvs mailing list