cljs.js/empty-state

functionsince v1.7.10Edit
(empty-state)
(empty-state init)

Source docstring:
Construct an empty compiler state. Required to invoke analyze, compile,
eval and eval-str.
Source code @ clojurescript:src/main/cljs/cljs/js.cljs
(defn empty-state
  ([]
   (doto (env/default-compiler-env)
     (swap!
       (fn [state]
         (-> state
           (assoc-in [::ana/namespaces 'cljs.core] (dump-core)))))))
  ([init]
   (doto (empty-state) (swap! init))))