Skip to content

Commit

Permalink
need to handle file & urls when reading transit cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dnolen committed Jun 3, 2016
1 parent 1046cf9 commit 74ef21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/clojure/cljs/analyzer.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2920,7 +2920,7 @@
cached-ns (case ext
"edn" (edn/read-string (slurp cache))
"json" (let [{:keys [reader read]} @transit]
(read (reader (FileInputStream. ^File cache) :json))))]
(read (reader (io/input-stream cache) :json))))]
(when (or *verbose* (:verbose opts))
(util/debug-prn "Reading analysis cache for" (str res)))
(swap! env/*compiler*
Expand Down

0 comments on commit 74ef21b

Please sign in to comment.