Project

General

Profile

« Previous | Next » 

Revision 41359

  • include/ruby/intern.h, proc.c (rb_method_call_with_block):
    new function to invoke a Method object with a block passed
    as an argument.

  • proc.c (bmcall): use the above function to avoid a block sharing.
    [ruby-core:54626] [Bug #8341]

  • test/ruby/test_proc.rb (TestProc#test_block_persist_between_calls):
    run related tests.