RJIT: Properly reject keyword splat with yield

See the fix for YJIT.
This commit is contained in:
Alan Wu 2024-01-18 19:53:28 -05:00
parent bbd249e351
commit 7b253cfea4
3 changed files with 7 additions and 0 deletions

View file

@ -4452,6 +4452,11 @@ module RubyVM::RJIT
return CantCompile
end
if flags & C::VM_CALL_KW_SPLAT != 0
asm.incr_counter(:send_iseq_kw_splat)
return CantCompile
end
if iseq_has_rest && opt_num != 0
asm.incr_counter(:send_iseq_has_rest_and_optional)
return CantCompile