diff options
| author | Matt Valentine-House <matt@eightbitraptor.com> | 2024-01-25 12:54:49 +0000 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-01-25 15:10:52 -0500 |
| commit | e452caac10c651a2b7de5fdc076b7b44a66785d5 (patch) | |
| tree | 1457b0114fd287fc6b91b7f8bf3c61ba70d1bf02 /test/ruby | |
| parent | e7262966c91c63511122153ea555c4cd420cd353 (diff) | |
[PRISM] Fix next inside rescue
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index 6b8549df7f..7fb71a666e 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -1206,6 +1206,15 @@ a next end CODE + + assert_prism_eval(<<~CODE) + [].each do + begin + rescue + next + end + end + CODE end def test_RedoNode |
