From: "ko1 (Koichi Sasada)" Date: 2012-07-14T14:44:45+09:00 Subject: [ruby-core:46412] [ruby-trunk - Bug #4379] [patch] eval(s, b, "(eval)", n) discards location Issue #4379 has been updated by ko1 (Koichi Sasada). Assignee changed from matz (Yukihiro Matsumoto) to ko1 (Koichi Sasada) ---------------------------------------- Bug #4379: [patch] eval(s, b, "(eval)", n) discards location https://bugs.ruby-lang.org/issues/4379#change-28031 Author: quix (James M. Lawrence) Status: Assigned Priority: Normal Assignee: ko1 (Koichi Sasada) Category: core Target version: 2.0.0 ruby -v: ruby 1.9.3dev (2011-02-08 trunk 30820) [i386-darwin9.8.0] =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 `
': 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 -- http://bugs.ruby-lang.org/