From: eregontp@... Date: 2017-04-28T17:57:01+00:00 Subject: [ruby-core:80927] [Ruby trunk Bug#13523] negative line numbers in instance_eval are misinterpreted in 32-bit ruby-trunk Issue #13523 has been updated by Eregon (Benoit Daloze). Actually this also happens on older release, there are just less 32-bit builders on older versions: http://rubyci.org/logs/www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20170428T070500Z.fail.html.gz ---------------------------------------- Bug #13523: negative line numbers in instance_eval are misinterpreted in 32-bit ruby-trunk https://bugs.ruby-lang.org/issues/13523#change-64562 * Author: Eregon (Benoit Daloze) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- 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: ~~~ ruby 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 ~~~ https://github.com/ruby/spec/blob/51bc2c1c8cd387ec99106b5f27eb5d0ab48fc560/core/basicobject/instance_eval_spec.rb#L172-L179 -- https://bugs.ruby-lang.org/ Unsubscribe: