mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Adjust caller's line number, expect the next line as here-doc
This commit is contained in:
parent
2bb217bfb7
commit
d12d53a6c8
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ class TestRubyOptimization < Test::Unit::TestCase
|
|||
unless file
|
||||
loc, = caller_locations(1, 1)
|
||||
file = loc.path
|
||||
line ||= loc.lineno
|
||||
line ||= loc.lineno + 1
|
||||
end
|
||||
RubyVM::InstructionSequence.new("proc {|_|_.class_eval {#{src}}}",
|
||||
file, (path || file), line,
|
||||
|
|
Loading…
Add table
Reference in a new issue