diff options
| author | Nick Dower <nicholasdower@gmail.com> | 2025-01-02 17:24:55 +0100 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2025-01-04 12:53:20 -0500 |
| commit | 37356b713ceb0d159f946269c8479854ceb2acee (patch) | |
| tree | 3bf0930e450fbe5347f10a5e6ebfd7c1f390eeec /test/ruby | |
| parent | c936699431477a565b9e4036bc3b1fc186ac9918 (diff) | |
YJIT: Add crashing test for yielding keyword args
Code like the following is crashing for us on 3.4.1:
```ruby
def a(&) = yield(x: 0)
1000.times { a { |x:| x } }
```
Crash:
```
ruby: YJIT has panicked. More info to follow...
thread '<unnamed>' panicked at ./yjit/src/codegen.rs:8018:13:
assertion `left == right` failed
left: 0
right: 1
```
Co-authored-by: Dani Acherkan <dtl.117@gmail.com>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12499
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
