eliminate most of cljs warnings except for one
This commit is contained in:
parent
187299b3d9
commit
c1d9dff75e
1 changed files with 3 additions and 3 deletions
|
|
@ -43,14 +43,14 @@
|
|||
(defn throw-illegal [& args]
|
||||
(throw (js/Error. (apply str args))))
|
||||
|
||||
|
||||
;; these macroexpand functions are for path macro in bootstrap cljs
|
||||
;; environment
|
||||
#+cljs
|
||||
(defn macroexpand'
|
||||
[form]
|
||||
(binding [cljs.js/*eval-fn* cljs.js/js-eval]
|
||||
(cljs.js/eval (cljs.js/empty-state)
|
||||
(binding [^:cljs.analyzer/no-resolve cljs.js/*eval-fn*
|
||||
^:cljs.analyzer/no-resolve cljs.js/js-eval]
|
||||
(^:cljs.analyzer/no-resolve cljs.js/eval (^:cljs.analyzer/no-resolve cljs.js/empty-state)
|
||||
`(macroexpand (quote ~form))
|
||||
identity)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue