Project

General

Profile

« Previous | Next » 

Revision 1720a5ba

Added by ktsj (Kazuki Tsujimoto) almost 11 years ago

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

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