Browse files

Fixed ParameterList map calls

  • Loading branch information...
1 parent 504cd2a commit ed63c18d5c9902c06330dc8705bcbecbf09c0555 Peter Wagenet committed Feb 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/parsejs/docs.rb
View
4 lib/parsejs/docs.rb
@@ -77,11 +77,11 @@ def visit_Program(program)
end
def visit_FunctionDeclaration(decl)
- with_variables(decl) { super }
+ with_variables(decl, decl.params.list.map(&:val)) { super }
end
def visit_FunctionExpression(expr)
- with_variables(expr) { super }
+ with_variables(expr, expr.params.list.map(&:val)) { super }
end
def with_variables(expr, params=expr.params.map(&:val))

0 comments on commit ed63c18

Please sign in to comment.