Skip to content

Commit 463de00

Browse files
author
dnolen
committed
use the transit read / write options
1 parent 61308c7 commit 463de00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/clojure/cljs/analyzer.cljc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2868,7 +2868,8 @@
28682868
(pr-str analysis)))
28692869
"json" (when-let [{:keys [writer write]} @transit]
28702870
(write
2871-
(writer (FileOutputStream. cache-file) :json)
2871+
(writer (FileOutputStream. cache-file) :json
2872+
transit-write-opts)
28722873
analysis))))
28732874
(when src
28742875
(.setLastModified ^File cache-file (util/last-modified src))))))
@@ -2936,7 +2937,8 @@
29362937
cached-ns (case ext
29372938
"edn" (edn/read-string (slurp cache))
29382939
"json" (let [{:keys [reader read]} @transit]
2939-
(read (reader (io/input-stream cache) :json))))]
2940+
(read (reader (io/input-stream cache) :json
2941+
transit-read-opts))))]
29402942
(when (or *verbose* (:verbose opts))
29412943
(util/debug-prn "Reading analysis cache for" (str res)))
29422944
(swap! env/*compiler*

0 commit comments

Comments
 (0)