cljs.js/*eval-fn*
dynamic var | since v1.7.10 | Edit |
Source docstring:
Each runtime environment provides various ways to eval JavaScript
source. Whatever function *eval-fn* is bound to will be passed a map
containing the following keys:
:source - the source of the library (string)
:name - used to unique identify the script (symbol)
:cache - if the source was originally ClojureScript, will be given the
analysis cache.
The result of evaluation should be the return value.
(defonce
^{:dynamic true}
*eval-fn*
(fn [m]
(throw (js/Error. "No *eval-fn* set"))))