Commit 0b0da6c
Correctly compile splats in for-loop index in prism
Fixes [Bug #21648]
This is a followup to ruby#13597.
The added test passed but didn't emit the same instructions.
This also handles bare splats and aligns instructions for all cases1 parent 308fb9c commit 0b0da6c
2 files changed
+17
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5338 | 5338 | | |
5339 | 5339 | | |
5340 | 5340 | | |
5341 | | - | |
5342 | | - | |
| 5341 | + | |
5343 | 5342 | | |
5344 | 5343 | | |
5345 | 5344 | | |
| |||
5359 | 5358 | | |
5360 | 5359 | | |
5361 | 5360 | | |
| 5361 | + | |
5362 | 5362 | | |
5363 | 5363 | | |
5364 | 5364 | | |
| |||
5394 | 5394 | | |
5395 | 5395 | | |
5396 | 5396 | | |
| 5397 | + | |
| 5398 | + | |
| 5399 | + | |
| 5400 | + | |
| 5401 | + | |
| 5402 | + | |
5397 | 5403 | | |
5398 | 5404 | | |
5399 | 5405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1046 | 1046 | | |
1047 | 1047 | | |
1048 | 1048 | | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1052 | 1052 | | |
1053 | | - | |
| 1053 | + | |
1054 | 1054 | | |
1055 | | - | |
| 1055 | + | |
1056 | 1056 | | |
1057 | 1057 | | |
1058 | | - | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
1059 | 1062 | | |
1060 | 1063 | | |
1061 | 1064 | | |
| |||
0 commit comments