Skip to content

Commit 8569461

Browse files
author
dnolen
committed
don't emit var_arg @param if we aren't type-checking
1 parent c793272 commit 8569461

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/clojure/cljs/core.cljc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2839,11 +2839,15 @@
28392839
(core/cond
28402840
(multi-arity-fn? fdecl)
28412841
(multi-arity-fn name
2842-
(update-in m [:jsdoc] conj "@param {...*} var_args") fdecl)
2842+
(if (comp/checking-types?)
2843+
(update-in m [:jsdoc] conj "@param {...*} var_args")
2844+
m) fdecl)
28432845

28442846
(variadic-fn? fdecl)
28452847
(variadic-fn name
2846-
(update-in m [:jsdoc] conj "@param {...*} var_args") fdecl)
2848+
(if (comp/checking-types?)
2849+
(update-in m [:jsdoc] conj "@param {...*} var_args")
2850+
m) fdecl)
28472851

28482852
:else
28492853
(core/list 'def (with-meta name m)

0 commit comments

Comments
 (0)