From: ko1@... Date: 2017-01-31T08:59:40+00:00 Subject: [ruby-core:79344] [Ruby trunk Bug#4379][Closed] [patch] eval(s, b, "(eval)", n) discards location 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 `
': (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 ---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: