« Previous | Next » 

Revision 41650

Added by Usaku NAKAMURA over 2 years ago

merge revision(s) 41342,41359,41361: [Backport #8341]

test/ruby/test_proc.rb: tests for [Bug #8341]
* 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.
   [Bug #8341]

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

* test/ruby/test_proc.rb (TestProc#test_block_given_method_to_proc):
  run test for r41359.