[ruby-cvs:66536] nobu:r59358 (trunk): vm_eval.c: rb_lambda_call

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Jul 18 17:31:02 JST 2017


nobu	2017-07-18 17:31:02 +0900 (Tue, 18 Jul 2017)

  New Revision: 59358

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

  Log:
    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 files:
    trunk/enum.c
    trunk/internal.h
    trunk/proc.c
    trunk/test/ruby/test_enum.rb
    trunk/vm_eval.c


More information about the ruby-cvs mailing list