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 556
556
(throw err#)
557
557
(throw (error ~env (.getMessage err#) err#)))))))
558
558
559
+ (def implicit-nses '#{cljs.core goog goog.object goog.string goog.array Math})
560
+
559
561
(defn implicit-import?
560
562
#? (:cljs {:tag boolean})
561
563
[env prefix suffix]
562
- (contains? '#{goog goog.object goog.string goog.array Math} prefix))
564
+ (contains? implicit-nses prefix))
563
565
564
566
(defn confirm-var-exist-warning [env prefix suffix]
565
567
(fn [env prefix suffix]
615
617
" Given env, an analysis environment, and ns-sym, a symbol identifying a
616
618
namespace, confirm that the namespace exists. Warn if not found."
617
619
[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))
619
621
(nil? (get (-> env :ns :requires ) ns-sym))
620
622
; ; something else may have loaded the namespace, i.e. load-file
621
623
(nil? (gets @env/*compiler* ::namespaces ns-sym))
You can’t perform that action at this time.
0 commit comments