ruby-changes:56768
From: Yusuke <ko1@a...>
Date: Fri, 2 Aug 2019 23:17:37 +0900 (JST)
Subject: [ruby-changes:56768] Yusuke Endoh: e9e17cbc05 (master): parse.y: make a warning for __FILE__ in eval by default
https://git.ruby-lang.org/ruby.git/commit/?id=e9e17cbc05 From e9e17cbc051e894dfd27eda5feca2939f65552db Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Fri, 2 Aug 2019 23:16:02 +0900 Subject: parse.y: make a warning for __FILE__ in eval by default [Bug #4352] diff --git a/parse.y b/parse.y index 2008fc6..447c7d3 100644 --- a/parse.y +++ b/parse.y @@ -9741,7 +9741,7 @@ past_dvar_p(struct parser_params *p, ID id) https://github.com/ruby/ruby/blob/trunk/parse.y#L9741 #define WARN_LOCATION(type) do { \ if (p->warn_location) { \ - rb_warning0(type" in eval may not return location in binding;" \ + rb_warn0(type" in eval may not return location in binding;" \ " use Binding#source_location instead"); \ } \ } while (0) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/