[ruby-cvs:60320] ko1:r53164 (trunk): * vm_insnhelper.c (vm_call_method_each_type): should not set fastpath

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu Dec 17 03:20:31 JST 2015


ko1	2015-12-17 03:20:29 +0900 (Thu, 17 Dec 2015)

  New Revision: 53164

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

  Log:
    * vm_insnhelper.c (vm_call_method_each_type): should not set fastpath
      with keyword arguments for VM_METHOD_TYPE_ATTRSET type methods.
    
      Normally, we can not use keyword arguments for this kind of methods,
      (obj.foo = 1), but we can set alias names for them.
      [Bug #11657]
    
    * test/ruby/test_keyword.rb: add a test for this fix.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_keyword.rb
    trunk/vm_insnhelper.c


More information about the ruby-cvs mailing list