Actions
Bug #4379
closed[patch] eval(s, b, "(eval)", n) discards location
Description
=begin
% ruby -e 'p eval("raise", nil, "(eval)", 999)'
-e:1:in eval': (eval):999:in
': (RuntimeError)
from -e:1:in eval' from -e:1:in
'
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 `'
source_location has a similar problem.
The patch also applies cleanly to 1.9.2.
=end
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0