Skip to content

Commit

Permalink
tool/mk_builtin_loader.rb: check if op is an array or not
Browse files Browse the repository at this point in the history
The insn array includes not only an array but also some literal objects.
  • Loading branch information
mame committed Nov 8, 2019
1 parent 11e21f1 commit 882179a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/mk_builtin_loader.rb
Expand Up @@ -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
}
Expand Down

0 comments on commit 882179a

Please sign in to comment.