We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12c142c commit a6faad4Copy full SHA for a6faad4
1 file changed
src/main/cljs/cljs/core.cljs
@@ -10886,14 +10886,14 @@ reduces them without incurring seq initialization"
10886
[ns]
10887
(when (nil? NS_CACHE)
10888
(set! NS_CACHE (atom {})))
10889
- (let [the-ns (get @NS_CACHE ns)]
+ (let [ns-str (str ns)
10890
+ ns (if (not ^boolean (gstring/contains ns-str "$macros"))
10891
+ (symbol (str ns-str "$macros"))
10892
+ ns)
10893
+ the-ns (get @NS_CACHE ns)]
10894
(if-not (nil? the-ns)
10895
the-ns
- (let [ns-str (str ns)
- ns (if (not ^boolean (gstring/contains ns-str "$macros"))
- (symbol (str ns-str "$macros"))
- ns)
10896
- ns-obj (find-ns-obj ns)]
+ (let [ns-obj (find-ns-obj ns)]
10897
(when-not (nil? ns-obj)
10898
(let [new-ns (create-ns ns ns-obj)]
10899
(swap! NS_CACHE assoc ns new-ns)
0 commit comments