Skip to content

Commit

Permalink
show RUBY_ISEQ_DUMP_DEBUG envval if given.
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Sep 30, 2019
1 parent 8ba48c1 commit bf8d7d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tool/lib/iseq_loader_checker.rb
Expand Up @@ -38,8 +38,10 @@ def self.compare_dump_and_load i1, dumper, loader
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
Expand Down

0 comments on commit bf8d7d9

Please sign in to comment.