Permalink
Browse files

* src/clj/cljs/compiler.clj: always warn on dynamic binding of vars n…

…ot delcared dynamic. possible now that analysis follows :requires & :uses
  • Loading branch information...
1 parent 98d84ba commit fd1988c17a6b48115287de7805c4753d1fd5ef33 David Nolen committed May 15, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/clj/cljs/compiler.clj
@@ -186,9 +186,6 @@
(let [env (merge env {:ns (@namespaces *cljs-ns*)})
ev (resolve-existing-var env name)]
(when (and *cljs-warn-on-dynamic*
- ;; don't warn on vars from other namespaces because
- ;; dependency ordering happens *after* compilation
- (= (:ns ev) *cljs-ns*)
ev (not (-> ev :dynamic)))
(warning env
(str "WARNING: " (:name-sym ev) " not declared ^:dynamic"))))))

0 comments on commit fd1988c

Please sign in to comment.