mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_eval.c (eval_string_with_cref): propagative filename and line_no
of binding. [ruby-dev:38767] [ruby-core:28307] * vm_core.h (rb_binding_t), proc.c: add filename and line_no fields to preserve them. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d49052b597
commit
b8571b4285
5 changed files with 22 additions and 1 deletions
|
@ -287,7 +287,7 @@ assert_normal_exit %q{
|
|||
eval("", method(:proc).call {}.binding)
|
||||
}
|
||||
|
||||
assert_equal "(eval):1:in `block in <main>': ", %q{
|
||||
assert_equal "", %q{
|
||||
b = binding
|
||||
10.times{
|
||||
eval('', b)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue