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
Updated by quix (James M. Lawrence) almost 14 years ago
=begin
=end
Updated by quix (James M. Lawrence) almost 14 years ago
=begin
=end
Updated by naruse (Yui NARUSE) over 13 years ago
- Status changed from Open to Assigned
- Assignee set to matz (Yukihiro Matsumoto)
Matz, how do you think, 1.8's result is:
% ruby -ve 'p eval("raise", binding, "(eval)", 999)'
ruby 1.8.7 (2010-08-16 patchlevel 302) [amd64-freebsd8]
-e:1:in `eval': (eval):999: (RuntimeError)
from -e:1
Updated by ko1 (Koichi Sasada) over 12 years ago
- Assignee changed from matz (Yukihiro Matsumoto) to ko1 (Koichi Sasada)
Updated by ko1 (Koichi Sasada) almost 12 years ago
- Target version changed from 2.0.0 to 2.6
Are there any applications that this problem is critical for?
Updated by ko1 (Koichi Sasada) almost 8 years ago
- Status changed from Assigned to Closed
No feedback.
Actions
Like0
Like0Like0Like0Like0Like0Like0