<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/ruby/test_syntax.rb, 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>Fill in lead num for blocks with `it`</title>
<updated>2025-09-13T13:43:59+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2025-09-13T00:51:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4f4b4e3b37c884093a165801b5028c14a7de1604'/>
<id>4f4b4e3b37c884093a165801b5028c14a7de1604</id>
<content type='text'>
Fixes [Bug #21256]

Co-Authored-By: Earlopain &lt;14981592+Earlopain@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes [Bug #21256]

Co-Authored-By: Earlopain &lt;14981592+Earlopain@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[Feature #20925] Support leading logical operators</title>
<updated>2025-09-13T06:42:26+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-12-23T05:39:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=618224adf620bd72645b3fada4f51e805196f5ca'/>
<id>618224adf620bd72645b3fada4f51e805196f5ca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update test syntax to handle command call endless methods</title>
<updated>2025-09-12T19:00:01+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2025-09-12T18:07:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=043ff370c1f16e69a55b38250528cbcf263b3567'/>
<id>043ff370c1f16e69a55b38250528cbcf263b3567</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Restore test example for argument forwarding</title>
<updated>2025-09-12T16:07:53+00:00</updated>
<author>
<name>Étienne Barrié</name>
<email>etienne.barrie@gmail.com</email>
</author>
<published>2025-09-12T14:16:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=691a5545e6161cf8c2f574ae9fc69df1232cda97'/>
<id>691a5545e6161cf8c2f574ae9fc69df1232cda97</id>
<content type='text'>
Since cb419e3912f0514b8151469b0a4a4b83cbbcce78 we're no longer testing
this case because foo is redefined on obj1.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since cb419e3912f0514b8151469b0a4a4b83cbbcce78 we're no longer testing
this case because foo is redefined on obj1.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[Bug #21256] Fix `it` parameter when splatting and `define_method` is…"</title>
<updated>2025-07-18T04:28:46+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2025-07-18T03:22:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=dc8ae249517e017e52a4b34a14ddd594a706a9d5'/>
<id>dc8ae249517e017e52a4b34a14ddd594a706a9d5</id>
<content type='text'>
This reverts commit 265059603c3aa6a13f90096c71b32046a17938f3.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 265059603c3aa6a13f90096c71b32046a17938f3.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #21256] Fix `it` parameter when splatting and `define_method` is used</title>
<updated>2025-07-17T20:18:17+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2025-04-13T13:10:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=265059603c3aa6a13f90096c71b32046a17938f3'/>
<id>265059603c3aa6a13f90096c71b32046a17938f3</id>
<content type='text'>
It was failing to set the leads, like numblocks do, causing the result to be wrapped in an array
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was failing to set the leads, like numblocks do, causing the result to be wrapped in an array
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a test case for `it` in a regex.</title>
<updated>2025-05-16T15:17:21+00:00</updated>
<author>
<name>Nick Dower</name>
<email>nicholasdower@gmail.com</email>
</author>
<published>2025-05-16T13:44:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c5c252c067a3ed39fa9fcf0e84e072e1f5b17291'/>
<id>c5c252c067a3ed39fa9fcf0e84e072e1f5b17291</id>
<content type='text'>
Co-authored-by: Alan Wu &lt;XrXr@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Alan Wu &lt;XrXr@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #21313] Handle `it` in rescue and ensure blocks.</title>
<updated>2025-05-16T15:17:21+00:00</updated>
<author>
<name>Nick Dower</name>
<email>nicholasdower@gmail.com</email>
</author>
<published>2025-05-16T03:18:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4921845b61c6a1b539dd8a65fb265024b8e40523'/>
<id>4921845b61c6a1b539dd8a65fb265024b8e40523</id>
<content type='text'>
The following is crashing for me:

```shell
ruby --yjit --yjit-call-threshold=1 -e '1.tap { raise rescue p it }'

ruby: YJIT has panicked. More info to follow...
thread '&lt;unnamed&gt;' panicked at ./yjit/src/codegen.rs:2402:14:
...
```

It seems `it` sometimes points to the wrong value:

```shell
ruby -e '1.tap { raise rescue p it }'
false

ruby -e '1.tap { begin; raise; ensure; p it; end } rescue nil'
false
```

But only when `$!` is set:

```shell
ruby -e '1.tap { begin; nil; ensure; p it; end }'
1

ruby -e '1.tap { begin; nil; rescue; ensure; p it; end }'
1

ruby -e '1.tap { begin; raise; rescue; ensure; p it; end }'
1
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The following is crashing for me:

```shell
ruby --yjit --yjit-call-threshold=1 -e '1.tap { raise rescue p it }'

ruby: YJIT has panicked. More info to follow...
thread '&lt;unnamed&gt;' panicked at ./yjit/src/codegen.rs:2402:14:
...
```

It seems `it` sometimes points to the wrong value:

```shell
ruby -e '1.tap { raise rescue p it }'
false

ruby -e '1.tap { begin; raise; ensure; p it; end } rescue nil'
false
```

But only when `$!` is set:

```shell
ruby -e '1.tap { begin; nil; ensure; p it; end }'
1

ruby -e '1.tap { begin; nil; rescue; ensure; p it; end }'
1

ruby -e '1.tap { begin; raise; rescue; ensure; p it; end }'
1
```
</pre>
</div>
</content>
</entry>
<entry>
<title>[PRISM] Handle forwarding inside eval</title>
<updated>2025-01-14T23:41:50+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2025-01-14T22:48:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cb419e3912f0514b8151469b0a4a4b83cbbcce78'/>
<id>cb419e3912f0514b8151469b0a4a4b83cbbcce78</id>
<content type='text'>
Fixes [Bug #21031]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes [Bug #21031]
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a test case for nested block `it`</title>
<updated>2024-12-23T05:53:51+00:00</updated>
<author>
<name>yui-knk</name>
<email>spiketeika@gmail.com</email>
</author>
<published>2024-12-23T04:58:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=18580bc4e0296dac77d583c037f6346441773e02'/>
<id>18580bc4e0296dac77d583c037f6346441773e02</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
