From bf8d7d9c1d89a62537566ea6dd43db175a892dbd Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Mon, 30 Sep 2019 15:35:22 +0900 Subject: [PATCH] show RUBY_ISEQ_DUMP_DEBUG envval if given. --- tool/lib/iseq_loader_checker.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tool/lib/iseq_loader_checker.rb b/tool/lib/iseq_loader_checker.rb index 1a1a694834..e7cfc79521 100644 --- a/tool/lib/iseq_loader_checker.rb +++ b/tool/lib/iseq_loader_checker.rb @@ -38,8 +38,10 @@ class RubyVM::InstructionSequence 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