On Monday, November 23, 2015 at 8:34:00 AM UTC+3, Maria Geller wrote: > For evaluating ClojureScript in ClojureScript you need to use the cljs.js > namespace > (https://github.com/cljsinfo/cljs-api-docs/blob/catalog/refs/library/cljs.js.md). > Here is a gist with a small example: > https://gist.github.com/mneise/36c0bbae83b19c056781 > > On Sunday, November 22, 2015 at 11:19:29 AM UTC-5, Yehonathan Sharvit wrote: > > Following this (great) talk by https://www.youtube.com/watch?v=Elg17s_nwDg > > I tried to comile cljs in cljs. > > > > The following code didn't work > > > > (->> (cljs.tools.reader/read-string "(inc 2)") > > (cljs.analyzer/analyze {})) > > > > I got a js error: > > > > Uncaught #error {:message "Cannot read property 'findInternedVar' of null", > > :data {:tag :cljs/analysis-error} > > > > > > Who could help?
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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/clojurescript.
