Make Thread#raise not raise $! #1942
dbussink merged 3 commits into rubinius:master from ryoqun:thread-raise-rescue
Oct 29, 2012
Commits on Oct 5, 2012
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.