Hi Andray, Can you provide an example. FWIW this is working for me:
foo.core=> (cljs/eval-str st "(defn square [x] (* x x))" 'test {:eval cljs/js-eval} cb) #object[cljs$user$square "function cljs$user$square(x){ return (x * x); }"] nil foo.core=> > > Hi, Maria! > > I tried to eval clojurescript form in clojurescript via eval-str and it works > for code without functions. > If i add 'defn' form then error occurs. I debugged it and first of all > following thing is suspicious: during analyzing defn we are dispatched into > core$macros.js functions where .core.cst$sym$cljs$core$macros_SLASH_fn is not > defined but similar cljs.core.cst$sym$cljs$core_SLASH_fn symbol is defined in > constants_table.js > Can you advice me where i can have a look to resolve my problem? > > Thanks in advance > > ps by the way can you explain me when core$macros.js and constants_table.js > come to play during transpiling? > > -- > Note that posts from new members are moderated - please be patient with your > first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojurescript+unsubscr...@googlegroups.com. > To post to this group, send email to clojurescript@googlegroups.com. > Visit this group at https://groups.google.com/group/clojurescript. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.