Project

General

Profile

« Previous | Next » 

Revision bb504213

Added by shugo (Shugo Maeda) over 11 years ago

  • string.c (sym_to_proc, sym_call): A Proc created by Symbol#to_proc
    should close over the current refinements.
    [ruby-dev:46345] [Bug #7261]

  • vm_eval.c (rb_call0, rb_search_method_entry,
    rb_funcall_passing_block_with_refinements): add a new argument
    `refinements' for the above changes.

  • test/ruby/test_refinement.rb: related test.

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