Skip to content

Commit

Permalink
don't call to-url on :file & :source-file properties in
Browse files Browse the repository at this point in the history
map->javascript-file, might be nil
  • Loading branch information
swannodette committed Mar 21, 2013
1 parent c47ae76 commit 16762c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/clj/cljs/closure.clj
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -279,8 +279,10 @@
(defn map->javascript-file [m] (defn map->javascript-file [m]
(javascript-file (javascript-file
(:foreign m) (:foreign m)
(to-url (:file m)) (when-let [f (:file m)]
(to-url (:source-file m)) (to-url f))
(when-let [sf (:source-file m)]
(to-url sf))
(:provides m) (:provides m)
(:requires m) (:requires m)
(:lines m) (:lines m)
Expand Down

0 comments on commit 16762c9

Please sign in to comment.