Should Exception#exception copy the backtrace?
Currently it does not on MRI:
ruby -e 'begin raise "foo"; rescue => e; c=e.exception "bar"; p c.backtrace; end' nil
But it does on JRuby 22.214.171.124 and TruffleRuby 1.0.0-rc11:
truffleruby -e 'begin raise "foo"; rescue => e; c=e.exception "bar"; p e.backtrace; end' ["-e:1:in `<main>'"]
This means in some cases, code needs about this difference such as in
More context in: