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 49b9304 commit 90bcf2bCopy full SHA for 90bcf2b
src/main/clojure/cljs/analyzer/api.clj
@@ -69,7 +69,10 @@
69
([env form name] (analyze env form name nil))
70
([env form name opts] (analyze env/*compiler* env form name opts))
71
([state env form name opts]
72
- (env/with-compiler-env state
+ (if state
73
+ (env/with-compiler-env state
74
+ (binding [ana/*cljs-warning-handlers* (:warning-handlers opts ana/*cljs-warning-handlers*)]
75
+ (ana/analyze env form name opts)))
76
(binding [ana/*cljs-warning-handlers* (:warning-handlers opts ana/*cljs-warning-handlers*)]
77
(ana/analyze env form name opts)))))
78
0 commit comments