Skip to main content

*eval-fn*

valuev1.7

cljs.js/*eval-fn*

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.

No examples yet. Be the first to add one!