Permalink
Browse files

don't call to-url on :file & :source-file properties in

map->javascript-file, might be nil
  • Loading branch information...
1 parent c47ae76 commit 16762c9a3f5b11fe6346dc0961fa5e6a76e8c7be @swannodette swannodette committed Mar 21, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/clj/cljs/closure.clj
@@ -279,8 +279,10 @@
(defn map->javascript-file [m]
(javascript-file
(:foreign m)
- (to-url (:file m))
- (to-url (:source-file m))
+ (when-let [f (:file m)]
+ (to-url f))
+ (when-let [sf (:source-file m)]
+ (to-url sf))
(:provides m)
(:requires m)
(:lines m)

0 comments on commit 16762c9

Please sign in to comment.