File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 767
767
ana/*cljs-ns* ana/*cljs-ns*
768
768
*cljs-verbose* repl-verbose
769
769
ana/*cljs-warnings*
770
- (assoc ana/*cljs-warnings*
771
- :unprovided warn-on-undeclared
772
- :undeclared-var warn-on-undeclared
773
- :undeclared-ns warn-on-undeclared
774
- :undeclared-ns-form warn-on-undeclared)
770
+ (let [warnings (opts :warnings true )]
771
+ (merge
772
+ ana/*cljs-warnings*
773
+ (if (or (true ? warnings)
774
+ (false ? warnings))
775
+ (zipmap (keys ana/*cljs-warnings*) (repeat warnings))
776
+ warnings)
777
+ (zipmap
778
+ [:unprovided :undeclared-var
779
+ :undeclared-ns :undeclared-ns-form ]
780
+ (repeat (if (false ? warnings)
781
+ false
782
+ warn-on-undeclared)))))
775
783
ana/*cljs-static-fns* static-fns
776
784
*repl-opts* opts]
777
785
(let [env {:context :expr :locals {}}
You can’t perform that action at this time.
0 commit comments