File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -12330,7 +12330,10 @@ reduces them without incurring seq initialization"
12330
12330
-1 )))))
12331
12331
12332
12332
IWithMeta
12333
- (-with-meta [coll meta] (Vector. meta array __hash))
12333
+ (-with-meta [coll new-meta]
12334
+ (if (identical? new-meta meta)
12335
+ coll
12336
+ (Vector. new-meta array __hash)))
12334
12337
12335
12338
ICloneable
12336
12339
(-clone [coll] (Vector. meta array __hash))
@@ -12465,6 +12468,19 @@ reduces them without incurring seq initialization"
12465
12468
(-persistent! [coll]
12466
12469
coll)
12467
12470
12471
+ ITransientAssociative
12472
+ (-assoc! [tcoll key val]
12473
+ (-assoc-n! tcoll key val))
12474
+
12475
+ ITransientVector
12476
+ (-assoc-n! [tcoll key val]
12477
+ (if (number? key)
12478
+ (-assoc-n tcoll key val)
12479
+ (throw (js/Error. " Vector's key for assoc! must be a number." ))))
12480
+
12481
+ (-pop! [tcoll]
12482
+ (-pop tcoll))
12483
+
12468
12484
IIterable
12469
12485
(-iterator [coll]
12470
12486
(VectorIterator. array 0 ))
@@ -12962,7 +12978,10 @@ reduces them without incurring seq initialization"
12962
12978
#(f (-val %) (-key %))))))
12963
12979
12964
12980
IWithMeta
12965
- (-with-meta [coll meta] (Set. meta hash-map __hash))
12981
+ (-with-meta [coll new-meta]
12982
+ (if (identical? new-meta meta)
12983
+ coll
12984
+ (Set. new-meta hash-map __hash)))
12966
12985
12967
12986
IMeta
12968
12987
(-meta [coll] meta)
Original file line number Diff line number Diff line change 1019
1019
1020
1020
(deftest test-cljs-2128
1021
1021
(testing " Subvec iteration"
1022
- (testing " Subvec over PersistentVector uses RangedIterator"
1023
- (is (instance? RangedIterator (-iterator (subvec [0 1 2 3 ] 1 3 )))))
1022
+ (when-not ^boolean LITE_MODE
1023
+ (testing " Subvec over PersistentVector uses RangedIterator"
1024
+ (is (instance? RangedIterator (-iterator (subvec [0 1 2 3 ] 1 3 ))))))
1024
1025
(testing " Subvec over other vectors uses naive SeqIter"
1025
1026
(is (instance? SeqIter (-iterator (subvec (->CustomVectorThing [0 1 2 3 ]) 1 3 ))))))
1026
1027
(testing " Subvec reduce"
You can’t perform that action at this time.
0 commit comments