ns-unmap
(ns-unmap quoted-ns quoted-sym)
Source docstring:
Removes the mappings for the symbol from the namespace.
(core/defmacro ns-unmap
[quoted-ns quoted-sym]
(core/assert
(core/and (seq? quoted-ns) (= (first quoted-ns) 'quote) (core/symbol? (second quoted-ns))
(seq? quoted-sym) (= (first quoted-sym) 'quote) (core/symbol? (second quoted-sym)))
"Arguments to ns-unmap must be quoted symbols")
(core/let [ns (second quoted-ns)
sym (second quoted-sym)]
(swap! env/*compiler* update-in [::ana/namespaces ns :defs] dissoc sym)
`(js-delete ~(comp/munge ns) ~(comp/munge (core/str sym)))))