Skip to content

Commit 5611cd5

Browse files
committed
- obj-map is definitely incomplete, but fix the obvious problem now
1 parent 8eae380 commit 5611cd5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12552,9 +12552,10 @@ reduces them without incurring seq initialization"
1255212552
obj (js-obj)]
1255312553
(loop [kvs (seq keyvals)]
1255412554
(if kvs
12555-
(do (.push ks (first kvs))
12556-
(gobject/set obj (first kvs) (second kvs))
12557-
(recur (nnext kvs)))
12555+
(let [k (-> kvs first keyword->obj-map-key)]
12556+
(.push ks k)
12557+
(gobject/set obj k (second kvs))
12558+
(recur (nnext kvs)))
1255812559
(.fromObject ObjMap ks obj)))))
1255912560

1256012561
; The keys field is an array of all keys of this map, in no particular

0 commit comments

Comments
 (0)