Please sign in to comment.
Make Thread#raise not raise $!
There is 1.8/1.9-specific behaviors when calling Thread#raise with no arguments inside a rescue clause and the called thread is also inside a rescue clause. First of all, Thread#raise doesn't use the exception in the calling thread. In other words, Thread#raise doesn't use $!, only Kernel#raise does. In 1.8, the raised exception is the exception in the called thread. In 1.9, it is always a RuntimeError.
- Loading branch information...
Showing with 25 additions and 1 deletion.