Actions
Bug #13523
closednegative line numbers in instance_eval are misinterpreted in 32-bit ruby-trunk
Description
As can be seen on http://rubyci.org/, 32-bit ruby-trunk seems to have regressed and no longer handles negative line number in #instance_eval correctly.
Specifically, this spec fails:
it "evaluates string with given filename and negative linenumber" do
err = begin
Object.new.instance_eval("\n\nraise\n", "b_file", -100)
rescue => e
e
end
err.backtrace.first.split(":")[0..1].should == ["b_file", "-98"]
end
Actions
Like0
Like0Like0Like0Like0Like0