File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2820
2820
(error env
2821
2821
(error-message :undeclared-ns {:ns-sym dep :js-provide (name dep)}))))))))))))
2822
2822
2823
+ (defn global-ns? [x]
2824
+ (or (= 'js x)
2825
+ (= " js" (namespace x))))
2826
+
2823
2827
(defn missing-use? [lib sym cenv]
2824
2828
; ; ignore globals referred via :refer-global
2825
- (when-not (= 'js lib)
2829
+ (when-not (global-ns? lib)
2826
2830
(let [js-lib (get-in cenv [:js-dependency-index (name lib)])]
2827
2831
(and (= (get-in cenv [::namespaces lib :defs sym] ::not-found ) ::not-found )
2828
2832
(not (= (get js-lib :group ) :goog ))
Original file line number Diff line number Diff line change 251
251
(load-sources repl-env sources opts)
252
252
sources)))
253
253
254
- (defn global-ns? [x]
255
- (or (= 'js x)
256
- (= " js" (namespace x))))
257
-
258
254
(defn- load-dependencies
259
255
" Compile and load the given `requires` and return the compiled sources."
260
256
([repl-env requires]
261
257
(load-dependencies repl-env requires nil ))
262
258
([repl-env requires opts]
263
259
(->> requires
264
260
distinct
265
- (remove global-ns?)
261
+ (remove ana/ global-ns?)
266
262
(mapcat #(load-namespace repl-env % opts))
267
263
doall)))
268
264
You can’t perform that action at this time.
0 commit comments