Project

General

Profile

« Previous | Next » 

Revision 5dc676a5

Added by ko1 (Koichi Sasada) over 8 years ago

  • 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e