ruby-changes:58046
From: Koichi <ko1@a...>
Date: Mon, 30 Sep 2019 16:22:54 +0900 (JST)
Subject: [ruby-changes:58046] bf8d7d9c1d (master): show RUBY_ISEQ_DUMP_DEBUG envval if given.
https://git.ruby-lang.org/ruby.git/commit/?id=bf8d7d9c1d From bf8d7d9c1d89a62537566ea6dd43db175a892dbd Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Mon, 30 Sep 2019 15:35:22 +0900 Subject: show RUBY_ISEQ_DUMP_DEBUG envval if given. diff --git a/tool/lib/iseq_loader_checker.rb b/tool/lib/iseq_loader_checker.rb index 1a1a694..e7cfc79 100644 --- a/tool/lib/iseq_loader_checker.rb +++ b/tool/lib/iseq_loader_checker.rb @@ -38,8 +38,10 @@ class RubyVM::InstructionSequence https://github.com/ruby/ruby/blob/trunk/tool/lib/iseq_loader_checker.rb#L38 i2 end - CHECK_TO_A = ENV['RUBY_ISEQ_DUMP_DEBUG'] == 'to_a' - CHECK_TO_BINARY = ENV['RUBY_ISEQ_DUMP_DEBUG'] == 'to_binary' + opt = ENV['RUBY_ISEQ_DUMP_DEBUG'] + puts "RUBY_ISEQ_DUMP_DEBUG = #{opt}" if opt + CHECK_TO_A = 'to_a' == opt + CHECK_TO_BINARY = 'to_binary' == opt def self.translate i1 # check to_a/load_iseq -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/