aboutsummaryrefslogtreecommitdiffstats
path: root/tool/mk_builtin_loader.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-11-08 12:58:17 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-11-08 23:29:50 +0900
commit882179a0ecc0dfb1f212334f3c92f90ffc817167 (patch)
tree4578b1725283716b3a1a2fc83539b973846a6d07 /tool/mk_builtin_loader.rb
parent11e21f1982cbe41860b3f6755505ce063b74fc33 (diff)
downloadruby-882179a0ecc0dfb1f212334f3c92f90ffc817167.tar.gz
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.
Diffstat (limited to 'tool/mk_builtin_loader.rb')
-rw-r--r--tool/mk_builtin_loader.rb2
1 files changed, 1 insertions, 1 deletions
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
}