We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 197ff2e commit aa67063Copy full SHA for aa67063
src/main/clojure/cljs/compiler.cljc
@@ -830,7 +830,7 @@
830
(emitln "return " n ".call(this" (if (zero? pcnt) nil
831
(list "," (comma-sep (take pcnt maxparams)))) ");"))))
832
(emitln "}")
833
- (emitln "throw(new Error('Invalid arity: ' + arguments.length));")
+ (emitln "throw(new Error('Invalid arity: ' + (arguments.length - 1)));")
834
(emitln "};")
835
(when variadic
836
(emitln mname ".cljs$lang$maxFixedArity = " max-fixed-arity ";")
0 commit comments