Skip to content

Commit

Permalink
Use specific path-munging function for ns resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
raph-amiard authored and David Nolen committed Jun 11, 2012
1 parent b7835bc commit 3db7710
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/clj/cljs/compiler.clj
Expand Up @@ -1217,8 +1217,11 @@
:else {:env env :op :set! :form form :target targetexpr :val valexpr
:children [targetexpr valexpr]})))))

(defn munge-path [ss]
(clojure.lang.Compiler/munge (str ss)))

(defn ns->relpath [s]
(str (string/replace (munge s) \. \/) ".cljs"))
(str (string/replace (munge-path s) \. \/) ".cljs"))

(declare analyze-file)

Expand Down

0 comments on commit 3db7710

Please sign in to comment.