Skip to content

Commit f122ee6

Browse files
committed
fix broken ObjMap -find
1 parent fbd8bce commit f122ee6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12664,10 +12664,10 @@ reduces them without incurring seq initialization"
1266412664

1266512665
IFind
1266612666
(-find [coll k]
12667-
(let [k (if-not (keyword? k) k (keyword->obj-map-key k))]
12668-
(when (and (string? k)
12669-
(not (nil? (scan-array 1 k strkeys))))
12670-
(MapEntry. k (unchecked-get strobj k) nil))))
12667+
(let [k' (if-not (keyword? k) k (keyword->obj-map-key k))]
12668+
(when (and (string? k')
12669+
(not (nil? (scan-array 1 k' strkeys))))
12670+
(MapEntry. k (unchecked-get strobj k') nil))))
1267112671

1267212672
IKVReduce
1267312673
(-kv-reduce [coll f init]

0 commit comments

Comments
 (0)