mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
tool/mk_builtin_loader.rb: check if op is an array or not
The insn array includes not only an array but also some literal objects.
This commit is contained in:
parent
11e21f1982
commit
882179a0ec
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def collect_builtin iseq_ary, bs
|
|||
end
|
||||
else
|
||||
insn[1..-1].each{|op|
|
||||
if op[0] == "YARVInstructionSequence/SimpleDataFormat"
|
||||
if op.is_a?(Array) && op[0] == "YARVInstructionSequence/SimpleDataFormat"
|
||||
collect_builtin op, bs
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue