Skip to content

Commit

Permalink
* src/clj/cljs/compiler.clj: fix bug around fns whose only non-zero a…
Browse files Browse the repository at this point in the history
…rity is variadic (i.e. hash-set). was emitting a false - false does not get emitted as empty string like nil does.
  • Loading branch information
David Nolen authored and David Nolen committed Jul 4, 2012
1 parent 6776e30 commit 39be680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/cljs/compiler.clj
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@
(do (emitln "default:") (do (emitln "default:")
(emitln "return " n ".cljs$lang$arity$variadic(" (emitln "return " n ".cljs$lang$arity$variadic("
(comma-sep (butlast maxparams)) (comma-sep (butlast maxparams))
(and (> (count maxparams) 1) ", ") (when (> (count maxparams) 1) ", ")
"cljs.core.array_seq(arguments, " max-fixed-arity "));")) "cljs.core.array_seq(arguments, " max-fixed-arity "));"))
(let [pcnt (count (:params meth))] (let [pcnt (count (:params meth))]
(emitln "case " pcnt ":") (emitln "case " pcnt ":")
Expand Down

0 comments on commit 39be680

Please sign in to comment.