Actions
Bug #20204
closed3.3.0 YJIT rises TypeError instead of ArgumentError with some incorrect calls
Bug #20204:
3.3.0 YJIT rises TypeError instead of ArgumentError with some incorrect calls
Description
Test with:
Actions
Added by alanwu (Alan Wu) over 2 years ago. Updated about 2 years ago.
Description
Test with:
Applied in changeset git|7f51959ff14fbe06bc1afd283d1af17b26161cf4.
YJIT: Move guard up for a case of splat+rest
Previously, YJIT put the guard for having enough items to extract from
splat array at a place where the side exit is invalid, so if the guard
fails, YJIT could raise something other than ArgumentError. Move the
guard up to a place before any stack manipulation.
[Bug #20204]
ruby_3_3 9c81bbbbb738a5747eab5455292536369977ee92 merged revision(s) 7f51959ff14fbe06bc1afd283d1af17b26161cf4.