ruby-changes:56267
From: Nobuyoshi <ko1@a...>
Date: Sat, 29 Jun 2019 08:12:35 +0900 (JST)
Subject: [ruby-changes:56267] Nobuyoshi Nakada: d12d53a6c8 (trunk): Adjust caller's line number, expect the next line as here-doc
https://git.ruby-lang.org/ruby.git/commit/?id=d12d53a6c8 From d12d53a6c8d959687d4ecec54501f3b13a806941 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 29 Jun 2019 01:30:43 +0900 Subject: Adjust caller's line number, expect the next line as here-doc diff --git a/test/ruby/test_optimization.rb b/test/ruby/test_optimization.rb index cb65b3a..d93afff 100644 --- a/test/ruby/test_optimization.rb +++ b/test/ruby/test_optimization.rb @@ -272,7 +272,7 @@ class TestRubyOptimization < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_optimization.rb#L272 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, -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/