[ruby-cvs:66678] nagachika:r59500 (ruby_2_4): merge revision(s) 59357, 59358: [Backport #13391] [Backport #13404]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Fri Aug 4 23:31:52 JST 2017


nagachika	2017-08-04 23:31:52 +0900 (Fri, 04 Aug 2017)

  New Revision: 59500

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

  Log:
    merge revision(s) 59357,59358: [Backport #13391] [Backport #13404]
    
    proc.c: rb_block_min_max_arity
    
    * proc.c (rb_block_min_max_arity): new function to get arity range
      from the current block.
    vm_eval.c: rb_lambda_call
    
    * enum.c (enum_collect): make the block arity same as the given
      block.  [Bug #13391]
    
    * internal.h (vm_ifunc): store arity instead of unused id.
    
    * proc.c (rb_vm_block_min_max_arity): return ifunc arity.
    
    * vm_eval.c (rb_lambda_call): call method with lambda block.

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/enum.c
    branches/ruby_2_4/internal.h
    branches/ruby_2_4/proc.c
    branches/ruby_2_4/test/ruby/test_enum.rb
    branches/ruby_2_4/version.h
    branches/ruby_2_4/vm_eval.c


More information about the ruby-cvs mailing list