You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code will print "#<RuntimeError: bork>" in JRuby 1.7.x as well as all MRI versions I tested, but "nil" in JRuby 9.0.0.0:
beginbeginraise'bork'rescueTypeErrorendensurep $!
end
Removing the inner begin … rescue makes it print "#<RuntimeError: bork>" again. It looks like rescue clears $!. The error matched by the inner rescue doesn't matter, and catching the error and re-raising it also leaves $! unset.
The text was updated successfully, but these errors were encountered:
iconara
added a commit
to iconara/ione
that referenced
this issue
Aug 8, 2015
This code will print "#<RuntimeError: bork>" in JRuby 1.7.x as well as all MRI versions I tested, but "nil" in JRuby 9.0.0.0:
Removing the inner
begin … rescue
makes it print "#<RuntimeError: bork>" again. It looks likerescue
clears$!
. The error matched by the innerrescue
doesn't matter, and catching the error and re-raising it also leaves$!
unset.The text was updated successfully, but these errors were encountered: