From f9e069336095b3dbcb6826177d3437f410c9a310 Mon Sep 17 00:00:00 2001 From: knu Date: Sat, 7 Dec 2002 09:11:53 +0000 Subject: Teach eval the correct line number to report. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/set.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/set.rb b/lib/set.rb index f6e3846c12..05a9455d2c 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -702,7 +702,7 @@ end # end if $0 == __FILE__ - eval DATA.read + eval DATA.read, nil, $0, __LINE__+4 end __END__ -- cgit v1.2.3