Skip to content

Commit 652cda9

Browse files
committed
- simple-vector needs to clone the underlying array
1 parent 515edb4 commit 652cda9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12360,7 +12360,7 @@ reduces them without incurring seq initialization"
1236012360
(defn simple-vector
1236112361
[& args]
1236212362
(if (and (instance? IndexedSeq args) (zero? (.-i args)))
12363-
(.fromArray Vector (.-arr args) (not (array? (.-arr args))))
12363+
(.fromArray Vector (aclone (.-arr args)))
1236412364
(Vector. nil (into-array args) nil)))
1236512365

1236612366
(defn simple-vec

0 commit comments

Comments
 (0)