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
@ -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…
x
Reference in New Issue
Block a user