Skip to content

Commit

Permalink
Slight tidy up of process_args()
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Aug 2, 2013
1 parent d68c2e2 commit 8e47a09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/opal/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1279,10 +1279,10 @@ def arity_check(args, opt, splat, block_name, mid)
def process_args(exp, level)
args = []

until exp.empty?
a = exp.shift.to_sym
exp.each do |a|
a = a.to_sym
next if a.to_s == '*'
a = "#{a}$".to_sym if RESERVED.include? a.to_s
a = lvar_to_js a
@scope.add_arg a
args << a
end
Expand Down

0 comments on commit 8e47a09

Please sign in to comment.