Skip to content

Commit

Permalink
CLJS-422: avoid analysis infinite loop case around cyclic dependencie…
Browse files Browse the repository at this point in the history
…s when namespaces don't have any

definitions.
  • Loading branch information
David Nolen authored and David Nolen committed Nov 21, 2012
1 parent 3b0f535 commit 698123f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/cljs/analyzer.clj
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@

(defn analyze-deps [deps]
(doseq [dep deps]
(when-not (:defs (@namespaces dep))
(when-not (contains? @namespaces dep)
(let [relpath (ns->relpath dep)]
(when (io/resource relpath)
(analyze-file relpath))))))
Expand Down

0 comments on commit 698123f

Please sign in to comment.