mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 06:56:13 +02:00
vm_eval.c: strange message in eval
* vm_eval.c (eval_string_with_cref): remove unnecessary location from exception backtrace in eval. [ruby-core:84434] [Bug #14229] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9e717416b4
commit
62a3e7a33b
2 changed files with 10 additions and 40 deletions
|
@ -1101,6 +1101,11 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status|
|
|||
end;
|
||||
end
|
||||
|
||||
def test_backtrace_in_eval
|
||||
bug = '[ruby-core:84434] [Bug #14229]'
|
||||
assert_in_out_err(['-e', 'eval("raise")'], "", [], /^\(eval\):1:/, bug)
|
||||
end
|
||||
|
||||
def test_full_message
|
||||
test_method = "def foo; raise 'testerror'; end"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue