[PRISM] Rescue should set correct end_label

In order for a break inside the rescue to have the correct jump target
This commit is contained in:
Matt Valentine-House 2023-12-06 22:20:38 +00:00 committed by Jemma Issroff
parent 071df40495
commit c4b9695350
2 changed files with 10 additions and 0 deletions

View file

@ -950,6 +950,14 @@ module Prism
end
end
CODE
assert_prism_eval(<<~CODE)
10.times do
begin
rescue
break
end
end
CODE
end
def test_RescueModiferNode