From 995fd11bdec4d84710249aef66a07b88e6b9bf46 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Thu, 17 Aug 2023 20:03:06 -0400 Subject: [ruby/yarp] Remove strange :"#arg_rest" local https://github.com/ruby/yarp/commit/66ecec218d --- lib/yarp.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/yarp.rb b/lib/yarp.rb index 30f361df07..aa92113d2c 100644 --- a/lib/yarp.rb +++ b/lib/yarp.rb @@ -381,6 +381,10 @@ module YARP # of those here. names = names.grep_v(/^_\d$/) + # For some reason, CRuby occasionally pushes this special local + # variable when there are splat arguments. We get rid of that here. + names = names.grep_v(:"#arg_rest") + # Now push them onto the list of locals. locals << names end -- cgit v1.2.3