From ea73805c56780367c90d7abe915877b054dd54bd Mon Sep 17 00:00:00 2001 From: Andrew Konchin Date: Wed, 26 Jun 2024 13:27:02 +0300 Subject: [PATCH] Use __LINE__ math instead of executing heredoc with eval --- language/heredoc_spec.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/language/heredoc_spec.rb b/language/heredoc_spec.rb index 62d0e368e..47ee9c2c5 100644 --- a/language/heredoc_spec.rb +++ b/language/heredoc_spec.rb @@ -109,7 +109,11 @@ it "reports line numbers inside HEREDOC with method call" do -> { - eval %{<