We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc8f04 commit 176c681Copy full SHA for 176c681
src/main/clojure/cljs/analyzer.cljc
@@ -3393,8 +3393,8 @@
3393
cached-ns (case ext
3394
"edn" (edn/read-string (slurp cache))
3395
"json" (let [{:keys [reader read]} @transit]
3396
- (read (reader (io/input-stream cache) :json
3397
- transit-read-opts))))]
+ (with-open [is (io/input-stream cache)]
+ (read (reader is :json transit-read-opts)))))]
3398
(when (or *verbose* (:verbose opts))
3399
(util/debug-prn "Reading analysis cache for" (str res)))
3400
(swap! env/*compiler*
0 commit comments