summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJemma Issroff <[email protected]>2023-12-13 12:17:22 -0500
committerJemma Issroff <[email protected]>2023-12-14 13:45:41 -0500
commit7ac93e99a3db30ed41cbbe95df1d7be9a790b9cb (patch)
tree7d6bfa92e54390fdcfa381e6aaaabaa8f3167fd0 /test
parent01f21d57297f1e6820a6a374ccf9c432c6178038 (diff)
[PRISM] Account for multiple anonymous locals
This commit adjusts the local table size to be consistent regardless of the number of anonymous locals.
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_compile_prism.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb
index f89aabfc0e..192094bafe 100644
--- a/test/ruby/test_compile_prism.rb
+++ b/test/ruby/test_compile_prism.rb
@@ -1128,6 +1128,8 @@ module Prism
assert_prism_eval("[].tap { _1 }")
assert_prism_eval("[].each { |a,| }")
+ assert_prism_eval("[[1, 2, 3]].map { |_, _, a| a }")
+ assert_prism_eval("[[1, 2, 3]].map { |_, a| a }")
assert_prism_eval("[[]].map { |a| a }")
assert_prism_eval("[[]].map { |a| a }")