ruby-changes:54779
From: ko1 <ko1@a...>
Date: Mon, 4 Feb 2019 15:29:02 +0900 (JST)
Subject: [ruby-changes:54779] ko1:r66998 (trunk): For this may be a syntax error (instead of LocalJumpError) in Ruby 2.7
ko1 2019-02-04 15:28:57 +0900 (Mon, 04 Feb 2019) New Revision: 66998 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66998 Log: For this may be a syntax error (instead of LocalJumpError) in Ruby 2.7 [Fix GH-2078] This patch is from Yutaka HARA <yutaka.hara+github@g...>. Modified files: trunk/sample/trick2013/yhara/entry.rb Index: sample/trick2013/yhara/entry.rb =================================================================== --- sample/trick2013/yhara/entry.rb (revision 66997) +++ sample/trick2013/yhara/entry.rb (revision 66998) @@ -2,7 +2,7 @@ def _(&b)$><<->(x){x ? (String===x ?x.up https://github.com/ruby/ruby/blob/trunk/sample/trick2013/yhara/entry.rb#L2 (Class===x ? x : x.class).name[$a?0:($a=5)]): " "}[ begin b[];rescue Exception;$!;end ] end -_ { yield } +_ { 1.tap } _ { method(:p).unbind } _ { eval "{ " } _ { Thread.current.join } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/