1
0
Fork 0
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:
Yusuke Endoh 2019-11-08 12:58:17 +09:00
parent 11e21f1982
commit 882179a0ec

View file

@ -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
}