Issue #4379 has been updated by Koichi Sasada.

Status changed from Assigned to Closed

No feedback.

----------------------------------------
Bug #4379: [patch] eval(s, b, "(eval)", n) discards location
https://bugs.ruby-lang.org/issues/4379#change-62766

* Author: James M. Lawrence
* Status: Closed
* Priority: Normal
* Assignee: Koichi Sasada
* Target version: next minor
* ruby -v: ruby 1.9.3dev (2011-02-08 trunk 30820) [i386-darwin9.8.0]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
=begin
 % ruby -e 'p eval("raise", nil, "(eval)", 999)'
 -e:1:in `eval': (eval):999:in `<main>':  (RuntimeError)
 	from -e:1:in `eval'
 	from -e:1:in `<main>'
 
 With binding, location is ignored.
 
 % ruby -e 'p eval("raise", binding, "(eval)", 999)'
 -e:1:in `<main>': unhandled exception
 	from -e:1:in `eval'
 	from -e:1:in `<main>'
 
 source_location has a similar problem.
 
 The patch also applies cleanly to 1.9.2.
=end


---Files--------------------------------
test_eval_location.patch (762 Bytes)
eval_location.patch (1.26 KB)
better_eval_location.patch (1.27 KB)
final_eval_location.patch (4.11 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>