From 7ac93e99a3db30ed41cbbe95df1d7be9a790b9cb Mon Sep 17 00:00:00 2001 From: Jemma Issroff Date: Wed, 13 Dec 2023 12:17:22 -0500 Subject: [PRISM] Account for multiple anonymous locals This commit adjusts the local table size to be consistent regardless of the number of anonymous locals. --- test/ruby/test_compile_prism.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') 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 }") -- cgit v1.2.3