Skip to content

Commit 202bb80

Browse files
committed
fix macro doc regression caused by fcd158
1 parent c5e0887 commit 202bb80

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/clojure/cljs/analyzer.cljc

+4-2
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,8 @@
558558
(throw err#)
559559
(throw (error ~env (.getMessage err#) err#)))))))
560560

561-
(def implicit-nses '#{cljs.core goog goog.object goog.string goog.array Math})
561+
;; namespaces implicit to the inclusion of cljs.core
562+
(def implicit-nses '#{goog goog.object goog.string goog.array Math})
562563

563564
(defn implicit-import?
564565
#?(:cljs {:tag boolean})
@@ -619,7 +620,8 @@
619620
"Given env, an analysis environment, and ns-sym, a symbol identifying a
620621
namespace, confirm that the namespace exists. Warn if not found."
621622
[env ns-sym]
622-
(when (and (nil? (get implicit-nses ns-sym))
623+
(when (and (not= 'cljs.core ns-sym)
624+
(nil? (get implicit-nses ns-sym))
623625
(nil? (get (-> env :ns :requires) ns-sym))
624626
;; something else may have loaded the namespace, i.e. load-file
625627
(nil? (gets @env/*compiler* ::namespaces ns-sym))

0 commit comments

Comments
 (0)