We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 144c321 commit 66ecec2Copy full SHA for 66ecec2
lib/yarp.rb
@@ -381,6 +381,10 @@ def self.cruby_locals(source)
381
# of those here.
382
names = names.grep_v(/^_\d$/)
383
384
+ # For some reason, CRuby occasionally pushes this special local
385
+ # variable when there are splat arguments. We get rid of that here.
386
+ names = names.grep_v(:"#arg_rest")
387
+
388
# Now push them onto the list of locals.
389
locals << names
390
end
0 commit comments