mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
show RUBY_ISEQ_DUMP_DEBUG envval if given.
This commit is contained in:
parent
8ba48c1b85
commit
bf8d7d9c1d
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue