[MacRuby-devel] [MacRuby] #707: raising an exception inside a rescue raises the rescued exception instead of the new exception
MacRuby
ruby-noreply at macosforge.org
Wed May 12 05:34:12 PDT 2010
#707: raising an exception inside a rescue raises the rescued exception instead
of the new exception
---------------------------------------+------------------------------------
Reporter: thilo@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
---------------------------------------+------------------------------------
Hi while trying to setup a testsuite with mocha and bacon by using Eloy's
mocha-on-bacon things fall apart because of the mentioned bug.
Here some code to reproduce the bug:
def test_catch_and_raise
begin
raise StandardError
rescue
raise Exception
end
end
-- macruby 0.6 --
test_catch_and_raise => StandardError: StandardError
-- ruby 1.9.1
test_catch_and_raise => Exception: Exception
--
Ticket URL: <http://www.macruby.org/trac/ticket/707>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list