ruby-changes:44776
From: usa <ko1@a...>
Date: Sun, 20 Nov 2016 15:19:11 +0900 (JST)
Subject: [ruby-changes:44776] usa:r56849 (trunk): get rid of test failures introduced at r56848
usa 2016-11-20 15:19:05 +0900 (Sun, 20 Nov 2016) New Revision: 56849 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56849 Log: get rid of test failures introduced at r56848 * ext/rubyvm/lib/forwardable/impl.rb: remove an unused variable definition to get rid of a warning. Modified files: trunk/ext/rubyvm/lib/forwardable/impl.rb Index: ext/rubyvm/lib/forwardable/impl.rb =================================================================== --- ext/rubyvm/lib/forwardable/impl.rb (revision 56848) +++ ext/rubyvm/lib/forwardable/impl.rb (revision 56849) @@ -4,7 +4,7 @@ module Forwardable https://github.com/ruby/ruby/blob/trunk/ext/rubyvm/lib/forwardable/impl.rb#L4 def self._valid_method?(method) iseq = RubyVM::InstructionSequence.compile("().#{method}", nil, nil, 0, false) - rescue SyntaxError => e + rescue SyntaxError false else iseq.to_a.dig(-1, 1, 1, :mid) == method.to_sym -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/