File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -5721,7 +5721,7 @@ reduces them without incurring seq initialization"
5721
5721
" Creates a new vector containing the args."
5722
5722
[& args]
5723
5723
(if (and (instance? IndexedSeq args) (zero? (.-i args)))
5724
- (.fromArray PersistentVector (.-arr args) true )
5724
+ (.fromArray PersistentVector (.-arr args) ( not ( array? ( .-arr args))) )
5725
5725
(vec args)))
5726
5726
5727
5727
(declare subvec )
Original file line number Diff line number Diff line change 1789
1789
(is (= [] (subvec [1 2 3 4 ] 1.7 1.3 )))
1790
1790
(is (thrown-with-msg? js/Error #"Index out of bounds" (subvec [1 2 3 4 ] 0 5 )))
1791
1791
(is (= [1 2 3 4 ] (subvec [1 2 3 4 ] 0 4.9 ))))
1792
+
1793
+ (deftest test-cljs-3095
1794
+ (let [a #js [:original ]
1795
+ v (apply vector a)]
1796
+ (aset a 0 :modified )
1797
+ (is (= :original (v 0 )))))
You can’t perform that action at this time.
0 commit comments