From 55a24f9b08ac2217accb720e29232d56aed2e5a4 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Fri, 24 Feb 2023 18:42:53 -0500 Subject: YJIT: Reject __send__ with splat to cfunc for now `make test-spec` revealed this issue after applying an unrelated bug fix. A crashing case is included, though I suspect there are other scenarios where it misbehaves. Don't compile for now. Note that this is *not* an issue on the 3.2.x series; it has `send_args_splat_non_iseq` which already rejects all splats to cfuncs, including sends with splats. --- bootstraptest/test_yjit.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bootstraptest') diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index f79f047928..68b738477b 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -3579,3 +3579,8 @@ assert_equal 'true', %q{ def a.test = :test a.is_a?(a.singleton_class) } + +# Test send with splat to a cfunc +assert_equal 'true', %q{ + 1.send(:==, 1, *[]) +} -- cgit v1.2.1