Navigation Menu

Skip to content

Commit

Permalink
Fix (:refer-clojure :exclude []) to work with things defined in cljs.…
Browse files Browse the repository at this point in the history
…core.
  • Loading branch information
lynaghk authored and swannodette committed Jan 11, 2012
1 parent 43fd784 commit 3a71eef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clj/cljs/compiler.clj
Expand Up @@ -916,7 +916,8 @@

(defn get-expander [sym env]
(let [mvar
(when-not (-> env :locals sym) ;locals hide macros
(when-not (or (-> env :locals sym) ;locals hide macros
(-> env :ns :excludes sym))
(if-let [nstr (namespace sym)]
(when-let [ns (cond
(= "clojure.core" nstr) (find-ns 'cljs.core)
Expand Down

0 comments on commit 3a71eef

Please sign in to comment.