summaryrefslogtreecommitdiff
path: root/benchmark/hash_literal_small2.rb
diff options
authorUfuk Kayserilioglu <[email protected]>2025-06-12 18:33:10 +0300
committerGitHub <[email protected]>2025-06-12 11:33:10 -0400
commit5ec9a392cdf7f971221dc073dd466bce877d8acb (patch)
tree508787520bc0aeff55c65f5e037f77a169078cb8 /benchmark/hash_literal_small2.rb
parent7c22330cd2b5430aa4c284aca2a5db9478d971e0 (diff)
[Bug #21439] Fix `PM_SPLAT_NODE` compilation error in for loops (#13597)HEADmaster
[Bug #21439] Fix PM_SPLAT_NODE compilation error in for loops This commit fixes a crash that occurred when using splat nodes (*) as the index variable in for loops. The error "Unexpected node type for index in for node: PM_SPLAT_NODE" was thrown because the compiler didn't know how to handle splat nodes in this context. The fix allows code like `for *x in [[1,2], [3,4]]` to compile and execute correctly, where the splat collects each sub-array.
Notes
Notes: Merged-By: eileencodes <[email protected]>
Diffstat (limited to 'benchmark/hash_literal_small2.rb')
0 files changed, 0 insertions, 0 deletions