mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update trick2013/yhara for Ruby 2.4
I need to raise LocalJumpError here (for the first "J" of the output "JUST ANOTHER RUBY HACKER"), but this `return` does not raise error in Ruby 2.4. [Fix GH-1703] Author: Yutaka HARA <yutaka.hara+github@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
05ee7f2fdb
commit
fb38cfb90f
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ def _(&b)$><<->(x){x ? (String===x ?x.upcase:
|
|||
(Class===x ? x : x.class).name[$a?0:($a=5)]):
|
||||
" "}[ begin b[];rescue Exception;$!;end ] end
|
||||
|
||||
_ { return }
|
||||
_ { yield }
|
||||
_ { method(:p).unbind }
|
||||
_ { eval "{ " }
|
||||
_ { Thread.current.join }
|
||||
|
|
Loading…
Add table
Reference in a new issue