Skip to content

Commit 553cf15

Browse files
committed
Fix s(:arglist) creation on 1.8.7
1 parent ad1f4e2 commit 553cf15

File tree

3 files changed

+1883
-1894
lines changed

3 files changed

+1883
-1894
lines changed

lib/opal/parser.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@ def new_block_args(norm, opt, rest, block)
369369
end
370370
end
371371

372-
def new_call(recv, meth, args = [])
372+
def new_call(recv, meth, args = nil)
373+
args ||= []
373374
sexp = s(:call, recv, value(meth).to_sym, s(:arglist, *args))
374375
sexp.loc = source(meth)
375376
sexp

0 commit comments

Comments
 (0)