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 556556 (throw err#)
557557 (throw (error ~env (.getMessage err#) err#)))))))
558558
559+ (def implicit-nses '#{cljs.core goog goog.object goog.string goog.array Math})
560+
559561(defn implicit-import?
560562 #? (:cljs {:tag boolean})
561563 [env prefix suffix]
562- (contains? '#{goog goog.object goog.string goog.array Math} prefix))
564+ (contains? implicit-nses prefix))
563565
564566(defn confirm-var-exist-warning [env prefix suffix]
565567 (fn [env prefix suffix]
615617 " Given env, an analysis environment, and ns-sym, a symbol identifying a
616618 namespace, confirm that the namespace exists. Warn if not found."
617619 [env ns-sym]
618- (when (and (nil? (get '#{cljs.core goog Math goog.string} ns-sym))
620+ (when (and (nil? (get implicit-nses ns-sym))
619621 (nil? (get (-> env :ns :requires ) ns-sym))
620622 ; ; something else may have loaded the namespace, i.e. load-file
621623 (nil? (gets @env/*compiler* ::namespaces ns-sym))
You can’t perform that action at this time.
0 commit comments