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:
parent
71fee9bc72
commit
c3693bbaaa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue