Skip to content
Permalink
Browse files

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.
  • Loading branch information...
mame committed Nov 8, 2019
1 parent 11e21f1 commit 882179a0ecc0dfb1f212334f3c92f90ffc817167
Showing with 1 addition and 1 deletion.
  1. +1 −1 tool/mk_builtin_loader.rb
@@ -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
}

0 comments on commit 882179a

Please sign in to comment.
You can’t perform that action at this time.