Try this:
(.log js/console
((keyword "foo") (cljs.reader/read-string "{:foo :bar}")))
If that works, and generates :bar
, you have old generated code hanging around and you should run a lein cljsbuild clean
.
There was a change in 0.0-1877
that switched keywords, in the generated javascript, from :foo
to cljs.core.Keyword
.