File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -9636,7 +9636,7 @@ reduces them without incurring seq initialization"
9636
9636
(-write writer " #js " )
9637
9637
(print-map
9638
9638
(map (fn [k]
9639
- [(cond-> k (some? (re-matches #"[A-Za-z ][\w\*\+\? !\- ']*" k)) keyword) (unchecked-get obj k)])
9639
+ [(cond-> k (some? (re-matches #"[A-Za-z_ \*\+\? ! \- ' ][\w\*\+\? !\- ']*" k)) keyword) (unchecked-get obj k)])
9640
9640
(js-keys obj))
9641
9641
pr-writer writer opts))
9642
9642
Original file line number Diff line number Diff line change 1444
1444
(is (= " #js {:abc-def 1}" (pr-str #js {" abc-def" 1 })))
1445
1445
(is (= " #js {:x*+?!-' 1}" (pr-str #js {" x*+?!-'" 1 }))))
1446
1446
1447
+ (deftest test-cljs-2282
1448
+ (is (= " #js {:_abc 1}" (pr-str #js {" _abc" 1 })))
1449
+ (is (= " #js {:*compiler* 1}" (pr-str #js {" *compiler*" 1 }))))
1450
+
1447
1451
(comment
1448
1452
; ; ObjMap
1449
1453
; ; (let [ks (map (partial str "foo") (range 500))
You can’t perform that action at this time.
0 commit comments