Commit f61c1f1
committed
- builder.rb: correctly handle
Upstream commit ruby/ruby@a850cd1 is specific to 3.3,
previous versions already did not allow this.
See https://bugs.ruby-lang.org/issues/20392 for a bit more info.
But since the super node has has a different shape, it behaved unexpectedly in earlier ruby versions already.
It allowed forwarding with zero and one arguments and failed for more. Now correctly rejects it as invalid syntax, except in Ruby 3.3, that fix has not been backported.... forwarding to super with explicit block1 parent 91a0a6a commit f61c1f1
2 files changed
+32
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1120 | 1120 | | |
1121 | 1121 | | |
1122 | 1122 | | |
1123 | | - | |
1124 | | - | |
1125 | 1123 | | |
1126 | 1124 | | |
1127 | 1125 | | |
1128 | 1126 | | |
1129 | | - | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
1130 | 1132 | | |
1131 | | - | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1132 | 1136 | | |
1133 | 1137 | | |
1134 | 1138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8163 | 8163 | | |
8164 | 8164 | | |
8165 | 8165 | | |
| 8166 | + | |
| 8167 | + | |
| 8168 | + | |
| 8169 | + | |
| 8170 | + | |
| 8171 | + | |
| 8172 | + | |
| 8173 | + | |
| 8174 | + | |
| 8175 | + | |
| 8176 | + | |
| 8177 | + | |
| 8178 | + | |
| 8179 | + | |
| 8180 | + | |
| 8181 | + | |
| 8182 | + | |
| 8183 | + | |
| 8184 | + | |
| 8185 | + | |
| 8186 | + | |
| 8187 | + | |
| 8188 | + | |
| 8189 | + | |
8166 | 8190 | | |
8167 | 8191 | | |
8168 | 8192 | | |
| |||
0 commit comments