Skip to content

Commit 66ecec2

Browse files
committed
Remove strange :"#arg_rest" local
1 parent 144c321 commit 66ecec2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/yarp.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@ def self.cruby_locals(source)
381381
# of those here.
382382
names = names.grep_v(/^_\d$/)
383383

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+
384388
# Now push them onto the list of locals.
385389
locals << names
386390
end

0 commit comments

Comments
 (0)