Skip to content

Commit

Permalink
CLJS-530: Skip metadata maps in ns forms
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmarczyk authored and swannodette committed Jul 12, 2013
1 parent 1fb28f7 commit 46295a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clj/cljs/analyzer.clj
Expand Up @@ -608,8 +608,10 @@
(defmethod parse 'ns
[_ env [_ name & args :as form] _]
(assert (symbol? name) "Namespaces must be named by a symbol.")
(let [docstring (if (string? (first args)) (first args) nil)
(let [docstring (if (string? (first args)) (first args))
args (if docstring (next args) args)
metadata (if (map? (first args)) (first args))
args (if metadata (next args) args)
excludes
(reduce (fn [s [k exclude xs]]
(if (= k :refer-clojure)
Expand Down

0 comments on commit 46295a6

Please sign in to comment.