ruby-changes:46272
From: ko1 <ko1@a...>
Date: Tue, 18 Apr 2017 08:47:18 +0900 (JST)
Subject: [ruby-changes:46272] ko1:r58384 (trunk): should not return.
ko1 2017-04-18 08:47:12 +0900 (Tue, 18 Apr 2017) New Revision: 58384 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58384 Log: should not return. * test/ruby/test_settracefunc.rb (test_throwing_return_with_finish_frame): should not use `return`, but should use `next`. Modified files: trunk/test/ruby/test_settracefunc.rb Index: test/ruby/test_settracefunc.rb =================================================================== --- test/ruby/test_settracefunc.rb (revision 58383) +++ test/ruby/test_settracefunc.rb (revision 58384) @@ -1429,7 +1429,7 @@ class TestSetTraceFunc < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/ruby/test_settracefunc.rb#L1429 evs = [] TracePoint.new(:call, :return){|tp| - return if Thread.current != target_th + next unless target_thread? evs << tp.event }.enable{ Bug10724.new -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/