@@ -12527,7 +12527,7 @@ reduces them without incurring seq initialization"
12527
12527
bucket (aget hashobj h)]
12528
12528
(if bucket
12529
12529
(let [new-bucket (aclone bucket)
12530
- new-hashobj (goog.object /clone hashobj)]
12530
+ new-hashobj (gobject /clone hashobj)]
12531
12531
(aset new-hashobj h new-bucket)
12532
12532
(if-let [i (scan-array 2 k new-bucket)]
12533
12533
(do ; found key, replace
@@ -12536,11 +12536,11 @@ reduces them without incurring seq initialization"
12536
12536
(do ; did not find key, append
12537
12537
(.push new-bucket k v)
12538
12538
(HashMap. meta (inc count) new-hashobj nil ))))
12539
- (let [new-hashobj (goog.object /clone hashobj)] ; did not find bucket
12540
- (aset new-hashobj h (array k v))
12539
+ (let [new-hashobj (gobject /clone hashobj)] ; did not find bucket
12540
+ (unchecked-set new-hashobj h (array k v))
12541
12541
(HashMap. meta (inc count) new-hashobj nil )))))
12542
12542
(-contains-key? [coll k]
12543
- (let [bucket (aget hashobj (hash k))
12543
+ (let [bucket (unchecked-get hashobj (hash k))
12544
12544
i (when bucket (scan-array 2 k bucket))]
12545
12545
(if i
12546
12546
true
@@ -12549,16 +12549,16 @@ reduces them without incurring seq initialization"
12549
12549
IMap
12550
12550
(-dissoc [coll k]
12551
12551
(let [h (hash k)
12552
- bucket (aget hashobj h)
12552
+ bucket (unchecked-get hashobj h)
12553
12553
i (when bucket (scan-array 2 k bucket))]
12554
12554
(if (not i)
12555
12555
coll ; key not found, return coll unchanged
12556
- (let [new-hashobj (goog.object /clone hashobj)]
12557
- (if (> 3 (.-length bucket))
12556
+ (let [new-hashobj (gobject /clone hashobj)]
12557
+ (if (> 3 (alength bucket))
12558
12558
(js-delete new-hashobj h)
12559
12559
(let [new-bucket (aclone bucket)]
12560
12560
(.splice new-bucket i 2 )
12561
- (aset new-hashobj h new-bucket)))
12561
+ (unchecked-set new-hashobj h new-bucket)))
12562
12562
(HashMap. meta (dec count) new-hashobj nil )))))
12563
12563
12564
12564
IFn
0 commit comments