<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/prism/fixtures/rescue.txt, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/prism] Fix parsing rescued exception via indexed assignment</title>
<updated>2025-04-12T17:43:57+00:00</updated>
<author>
<name>viralpraxis</name>
<email>iaroslav2k@gmail.com</email>
</author>
<published>2025-04-10T08:56:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=543dd77cc39d16a45693d35af670995f7e66ce36'/>
<id>543dd77cc39d16a45693d35af670995f7e66ce36</id>
<content type='text'>
Given this code

```ruby
begin
  raise '42'
rescue =&gt; A[]
end
```

Prism fails with this backtrace

```
Error: test_unparser/corpus/literal/rescue.txt(Prism::ParserTest): NoMethodError: undefined method `arguments' for nil
prism/lib/prism/translation/parser/compiler.rb:1055:in `visit_index_target_node'
prism/lib/prism/node.rb:9636:in `accept'
prism/lib/prism/compiler.rb:30:in `visit'
prism/lib/prism/translation/parser/compiler.rb:218:in `visit_begin_node'
```

Seems like

```diff
-            visit_all(node.arguments.arguments),
+            visit_all(node.arguments&amp;.arguments || []),
```

fixes the problem.

https://github.com/ruby/prism/commit/76d01aeb6c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Given this code

```ruby
begin
  raise '42'
rescue =&gt; A[]
end
```

Prism fails with this backtrace

```
Error: test_unparser/corpus/literal/rescue.txt(Prism::ParserTest): NoMethodError: undefined method `arguments' for nil
prism/lib/prism/translation/parser/compiler.rb:1055:in `visit_index_target_node'
prism/lib/prism/node.rb:9636:in `accept'
prism/lib/prism/compiler.rb:30:in `visit'
prism/lib/prism/translation/parser/compiler.rb:218:in `visit_begin_node'
```

Seems like

```diff
-            visit_all(node.arguments.arguments),
+            visit_all(node.arguments&amp;.arguments || []),
```

fixes the problem.

https://github.com/ruby/prism/commit/76d01aeb6c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Update fixtures to be all valid Ruby</title>
<updated>2024-04-03T21:34:12+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-04-02T16:19:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e454cf22023c95e80689bb26ab1abd2775015fbf'/>
<id>e454cf22023c95e80689bb26ab1abd2775015fbf</id>
<content type='text'>
https://github.com/ruby/prism/commit/a0b978d25b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/a0b978d25b
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fix parsing rescue modifier</title>
<updated>2024-02-15T16:40:36+00:00</updated>
<author>
<name>Haldun Bayhantopcu</name>
<email>haldun@github.com</email>
</author>
<published>2024-02-15T15:30:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a0217025969097709928657acab58321bf0adedf'/>
<id>a0217025969097709928657acab58321bf0adedf</id>
<content type='text'>
https://github.com/ruby/prism/commit/b7407ae3c0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/b7407ae3c0
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fix binding power for modifier rescue</title>
<updated>2024-01-29T18:42:47+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-01-29T18:37:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d39d9e066fb55694abf007da86f658c6c4855a89'/>
<id>d39d9e066fb55694abf007da86f658c6c4855a89</id>
<content type='text'>
https://github.com/ruby/prism/commit/f614863d79
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/f614863d79
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename YARP filepaths to prism filepaths</title>
<updated>2023-09-27T17:57:38+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2023-09-27T16:22:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8ab56869a64fdccc094f4a83c6367fb23b72d38b'/>
<id>8ab56869a64fdccc094f4a83c6367fb23b72d38b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
