clj->js trims the namespace prefix from keywords while writing them to string
Declined
Description fields
Description
The following behavior was observed and confirmed from the code:
(clj->js :ns/n) => "n"
I believe this is a limitation and the namespace of the keyword should be kept while writing it to string. The code in core.js does this while handling keywords:
The following behavior was observed and confirmed from the code:
(clj->js :ns/n) => "n"
I believe this is a limitation and the namespace of the keyword should be kept while writing it to string.
The code in core.js does this while handling keywords:
(keyword? x) (name x)
while it should do this (or something similar):
(keyword? x) (str (namespace x) "/" (name x))