チケット #3033 が更新されました。 (by Evgeniy Dolzhenko)


I think that returning String instead of an Array as Exception#backtrace
here http://github.com/shyouhei/ruby/blob/trunk/eval.c#L382
is breaking other code expectation about backtrace being enumerable.

The real life example is RSpec: 

/usr/local/rvm/gems/ruby-1.9.2-head/gems/rspec-core-2.0.0.beta.7/lib/rspec/core/formatters/base_formatter.rb:127:in `read_failed_line': undefined method `detect' for "faster_open_struct.rb:0":String (NoMethodError)

(link to the code http://github.com/rspec/rspec-core/blob/master/lib/rspec/core/formatters/base_formatter.rb#L125 )
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3033

----------------------------------------
http://redmine.ruby-lang.org