Skip to content

Commit 6ac8ed2

Browse files
committed
ensure vector for alts in cljs
1 parent e54cf30 commit 6ac8ed2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/clojure/cljs/core/async.cljs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@
177177
[fret ports opts]
178178
(assert (pos? (count ports)) "alts must have at least one channel operation")
179179
(let [flag (alt-flag)
180+
ports (vec ports) ;; ensure vector for indexed nth
180181
n (count ports)
181182
idxs (random-array n)
182183
priority (:priority opts)

0 commit comments

Comments
 (0)