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]
|
(defn throw-illegal [& args]
|
||||||
(throw (js/Error. (apply str args))))
|
(throw (js/Error. (apply str args))))
|
||||||
|
|
||||||
|
|
||||||
;; these macroexpand functions are for path macro in bootstrap cljs
|
;; these macroexpand functions are for path macro in bootstrap cljs
|
||||||
;; environment
|
;; environment
|
||||||
#+cljs
|
#+cljs
|
||||||
(defn macroexpand'
|
(defn macroexpand'
|
||||||
[form]
|
[form]
|
||||||
(binding [cljs.js/*eval-fn* cljs.js/js-eval]
|
(binding [^:cljs.analyzer/no-resolve cljs.js/*eval-fn*
|
||||||
(cljs.js/eval (cljs.js/empty-state)
|
^: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))
|
`(macroexpand (quote ~form))
|
||||||
identity)))
|
identity)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue