Adjust caller's line number, expect the next line as here-doc
This commit is contained in:
parent
2bb217bfb7
commit
d12d53a6c8
@ -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…
x
Reference in New Issue
Block a user