Skip to content

Commit

Permalink
Fix s(:arglist) creation on 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Nov 23, 2013
1 parent ad1f4e2 commit 553cf15
Show file tree
Hide file tree
Showing 3 changed files with 1,883 additions and 1,894 deletions.
3 changes: 2 additions & 1 deletion lib/opal/parser.rb
Expand Up @@ -369,7 +369,8 @@ def new_block_args(norm, opt, rest, block)
end
end

def new_call(recv, meth, args = [])
def new_call(recv, meth, args = nil)
args ||= []
sexp = s(:call, recv, value(meth).to_sym, s(:arglist, *args))
sexp.loc = source(meth)
sexp
Expand Down

0 comments on commit 553cf15

Please sign in to comment.