Skip to content

Commit a9474ea

Browse files
committed
CLJS-742: Compilation with :output-file option set fails
The coll? check on compiler input(s) would incorrectly permit non-sequential collections to pass through instead of being wrapped by a vector. Change the check to sequential?
1 parent 896394e commit a9474ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clj/cljs/closure.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@
14501450
(concat
14511451
(apply add-dependencies all-opts
14521452
(concat
1453-
(if (coll? compiled) compiled [compiled])
1453+
(if (sequential? compiled) compiled [compiled])
14541454
(when (= :nodejs (:target all-opts))
14551455
[(-compile (io/resource "cljs/nodejs.cljs") all-opts)])))
14561456
(when (= :nodejs (:target all-opts))

0 commit comments

Comments
 (0)