I'm attempting to set some arglists metadata on vars. However the arglists are not preserved when accessing the metadata.
tmp ❯❯❯ clj -A:cljs -m cljs.main -re node -r
ClojureScript 1.10.773
cljs.user=> (def ^{:arglists '[[x]]} thing 3)
#'cljs.user/thing
cljs.user=> (:arglists (meta #'thing))
()
This is preserved in clojure:
tmp ❯❯❯ clj
Clojure 1.10.1
user=> (def ^{:arglists '[[x]]} thing 3)
#'user/thing
user=> (:arglists (meta #'thing))
[[x]]
In cljs it also will preserve non-arglists metadata:
cljs.user=> (def ^{:foo '[[x]]} thing 3)
#'cljs.user/thing
cljs.user=> (:foo (meta #'thing))
(quote [[x]])
Wondering if this is necessary behavior due to the unique nature of "vars" in ClojureScript or if a bug.
Edit:
seems to be a bug. Jira ticket: https://clojure.atlassian.net/browse/CLJS-3277