[ruby-cvs:60300] ko1:r53144 (trunk): * vm.c: fix mark miss for proc given as passed block.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Wed Dec 16 15:38:53 JST 2015


ko1	2015-12-16 15:38:52 +0900 (Wed, 16 Dec 2015)

  New Revision: 53144

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

  Log:
    * vm.c: fix mark miss for proc given as passed block.
      [Bug #11750]
    
    * vm.c (vm_make_proc_from_block): should return a Proc object
      if block is given. Previous implementation returns
      a Proc object only when corresponding Proc object is not
      available.
    
    * vm.c (vm_make_env_each): ditto.
    
    * test/ruby/test_proc.rb: add a test for this bug.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_proc.rb
    trunk/vm.c


More information about the ruby-cvs mailing list