File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 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})
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))
You can’t perform that action at this time.
0 commit comments