What is the error under simple optimizations? Errors under advanced optimizations are not particularly informative :)
Thanks On Saturday, November 17, 2012, Paul Gearon wrote: > Looking at the Clojurescript page on Github I can't find the appropriate > place to ask about potential bugs.... unless it's here. Can anyone help > please? (David?) > > Meanwhile, in case it's the correct place, I've tried the following as a > simple test to run on Node.js: > > --- > (ns jpp.core) > (defn -main [& args] > (.log js/console "Hello, World!\n")) > (set! *main-cli-fn* -main) > --- > > This works OK. > > However, the following will not work (though variations on this have been > seen to work): > > --- > (ns jpp.core) > (defn -main [] > (.log js/console "Hello, World!\n")) > (-main) > --- > > The output in this case is as follows: > > Hello, World! > > > /Users/pag/src/test/clj/jpp/pp.js:72 > ments supported on functions"))}var Vd,Wd=j;function Xd(a,b){var > c=a.q;if(a.m) > ^ > TypeError: Cannot read property 'q' of null > at Function.Xd [as b] (/Users/pag/src/test/clj/jpp/pp.js:72:280) > at Object.<anonymous> (/Users/pag/src/test/clj/jpp/pp.js:157:244) > at Module._compile (module.js:449:26) > at Object.Module._extensions..js (module.js:467:10) > at Module.load (module.js:356:32) > at Function.Module._load (module.js:312:12) > at Module.runMain (module.js:492:10) > at process.startup.processNextTick.process._tickCallback > (node.js:244:9) > > > Interestingly, it's printed the correct output, but fails after. Also, do > I mention in the same place that I get a different set of errors when I try > to use the lein-cljsbuild plugin? > > Regards, > Paul Gearon > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to > clojure@googlegroups.com<javascript:_e({}, 'cvml', > 'clojure@googlegroups.com');> > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com <javascript:_e({}, 'cvml', > 'clojure%2bunsubscr...@googlegroups.com');> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en