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
|
end
|
||||||
else
|
else
|
||||||
insn[1..-1].each{|op|
|
insn[1..-1].each{|op|
|
||||||
if op[0] == "YARVInstructionSequence/SimpleDataFormat"
|
if op.is_a?(Array) && op[0] == "YARVInstructionSequence/SimpleDataFormat"
|
||||||
collect_builtin op, bs
|
collect_builtin op, bs
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user