From 2e2e3d89af7d16e466a12a42ef6cd6554e700f50 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Tue, 20 Feb 2024 13:29:02 -0500 Subject: YJIT: Support `**nil` for cfuncs Similar to the iseq call support. Fairly straight forward. --- test/ruby/test_yjit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb index 3ccc1be1dd..35036aad4e 100644 --- a/test/ruby/test_yjit.rb +++ b/test/ruby/test_yjit.rb @@ -1574,11 +1574,11 @@ class TestYJIT < Test::Unit::TestCase end def test_kw_splat_nil - assert_compiles(<<~'RUBY', result: %i[ok ok], no_send_fallbacks: true) + assert_compiles(<<~'RUBY', result: %i[ok ok ok], no_send_fallbacks: true) def id(x) = x def kw_fw(arg, **) = id(arg, **) def fw(...) = id(...) - def use = [fw(:ok), kw_fw(:ok)] + def use = [fw(:ok), kw_fw(:ok), :ok.itself(**nil)] use RUBY -- cgit v1.2.3