Skip to content

Commit

Permalink
* src/clj/cljs/compiler.clj: always warn on dynamic binding of vars n…
Browse files Browse the repository at this point in the history
…ot delcared dynamic. possible now that analysis follows :requires & :uses
  • Loading branch information
David Nolen authored and David Nolen committed May 15, 2012
1 parent 98d84ba commit fd1988c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/clj/cljs/compiler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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"))))))
Expand Down

0 comments on commit fd1988c

Please sign in to comment.