File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2691
2691
(recur (rest forms))))
2692
2692
(throw (AssertionError. (str " No ns form found in " src)))))))]
2693
2693
(when (false ? (:restore opts))
2694
- (swap! env/*compiler* update-in [::namespaces ] merge
2695
- (get compiler-env' ::namespaces )))
2694
+ (swap! env/*compiler*
2695
+ (fn [old-state]
2696
+ (-> old-state
2697
+ (update-in [::namespaces ] merge (get compiler-env' ::namespaces ))
2698
+ (update-in [::constant-table ] merge (get compiler-env' ::constant-table ))))))
2696
2699
ijs)))))
2697
2700
2698
2701
#?(:clj
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ state that is accessed/maintained by many different components."}
42
42
([] (default-compiler-env {}))
43
43
([options]
44
44
(atom (merge {:cljs.analyzer/namespaces {'cljs.user {:name 'cljs.user}}
45
+ :cljs.analyzer/constant-table {}
45
46
:options options}
46
47
#?(:clj {:js-dependency-index (js-dependency-index options)})))))
47
48
You can’t perform that action at this time.
0 commit comments