[ruby-cvs:79060] 0eeed5bcc5 (master): Make eval(code, binding) use (eval) as __FILE__ and 1 as __LINE__
"Jeremy Evans" <[email protected]> Sat, 4 Jan 2020 13:13:28 +0900 (JST)
| Newsgroups | gmane.comp.lang.ruby.cvs |
|---|---|
| Message-ID | <[email protected]> |
Jeremy Evans 2019-07-31 08:15:19 +0900 (Wed, 31 Jul 2019)
New Revision: 0eeed5bcc5
https://github.com/ruby/ruby/commit/0eeed5bcc5
Log:
Make eval(code, binding) use (eval) as __FILE__ and 1 as __LINE__
=
This removes the warning that was added in
3802fb92ff8c83eed3e867db20f72c53932f542d, and switches the behavior
so that the eval does not use the binding's __FILE__ and __LINE__
implicitly.
=
Fixes [Bug #4352]
Modified files:
parse.y
spec/ruby/core/binding/eval_spec.rb
spec/ruby/core/kernel/__dir___spec.rb
spec/ruby/core/kernel/eval_spec.rb
test/ruby/test_eval.rb
test/ruby/test_method.rb
vm_eval.c=