diff options
| author | Matt Valentine-House <matt@eightbitraptor.com> | 2023-12-06 22:20:38 +0000 |
|---|---|---|
| committer | Jemma Issroff <jemmaissroff@gmail.com> | 2023-12-07 09:38:24 -0500 |
| commit | c4b969535055ab0debf47abc26d00c1b06c686cc (patch) | |
| tree | 8b8d65a2db3f0326f4bccbaa5ee13ef6d9335919 /test/ruby | |
| parent | 071df40495e31f6d3fd14ae8686b01edf9a689e3 (diff) | |
[PRISM] Rescue should set correct end_label
In order for a break inside the rescue to have the correct jump target
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index 339300a638..97ee5c2f70 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -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 |
