1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

catch up last commit.

Array#pack uses `opt_invokebuiltin_delegate_leave` now.
This commit is contained in:
Koichi Sasada 2019-11-18 10:24:38 +09:00
parent 71fee9bc72
commit c3693bbaaa

View file

@ -562,7 +562,7 @@ class TestISeq < Test::Unit::TestCase
def test_iseq_builtin_to_a
insns = RubyVM::InstructionSequence.of([].method(:pack)).to_a.last
invokebuiltin = insns.find { |insn| insn.is_a?(Array) && insn[0] == :invokebuiltin }
invokebuiltin = insns.find { |insn| insn.is_a?(Array) && insn[0] == :opt_invokebuiltin_delegate_leave }
assert_not_nil(invokebuiltin)
assert_equal([:func_ptr, :argc, :index, :name], invokebuiltin[1].keys)
end