From 882179a0ecc0dfb1f212334f3c92f90ffc817167 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Fri, 8 Nov 2019 12:58:17 +0900 Subject: [PATCH] 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. --- tool/mk_builtin_loader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/mk_builtin_loader.rb b/tool/mk_builtin_loader.rb index cea4d1f99b..87b5e2ab76 100644 --- a/tool/mk_builtin_loader.rb +++ b/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 }