Skip to content

Commit f132605

Browse files
committed
CLJS-1086: Keyword constants should have stable names
1 parent 280b7b9 commit f132605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clj/cljs/analyzer.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
:else
206206
(throw
207207
(Exception. (str "constant type " (type value) " not supported"))))]
208-
(symbol (str prefix (swap! constant-counter inc)))))
208+
(symbol (str prefix (string/replace (munge value) "." "$")))))
209209

210210
(defn- register-constant!
211211
([val] (register-constant! nil val))

0 commit comments

Comments
 (0)