[BUG] Catching exceptions in 'ensure' block discards original exception
Reported by Hongli Lai | March 26th, 2008 @ 06:48 AM | in 1.0 preview
Consider this code: http://pastie.org/170858
On MRI, an EOFError is raised. On Rubinius, nothing is raised.
Comments and changes to this ticket
-

-
Charles Comstock March 28th, 2008 @ 03:04 PM
- → State changed from new to open
please commit to your local repository and use git-format-patch to submit. That way it will give you credit for the patch.
-
Charles Comstock March 28th, 2008 @ 03:04 PM
- → Assigned user changed from to Charles Comstock
-

-
Michael Klishin (antares) March 28th, 2008 @ 04:56 PM
I think this spec example should raise something in ensure block: does "".size rescue nil actually raise anything?
-
-
Michael Klishin (antares) March 28th, 2008 @ 05:30 PM
- → State changed from open to resolved
- → Assigned user changed from Charles Comstock to Michael Klishin (antares)
Committed in "ef7e44363"http://git.rubini.us/?p=code;a=commit;h=ef7e4436389a0f4346b3a3bc5c275b653f46d6bb, thank you. Give Evan your public key using pastie on IRC (#rubinius at irc.freenode.org).
Please add tags for yet-to-be-implemented specs by yourself next time.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
