It worked by adding --language_in=ECMASCRIPT5. I'm also using --compilation_level ADVANCED_OPTIMIZATIONS with Closure Compiler.
The file produced works fine but I'm getting a lot of warnings now. I don't see these with --closure. WARNING - dangerous use of the global this object WARNING - Suspicious code. The result of the 'bitor' operator is not being used WARNING - unreachable code On Thursday, April 24, 2014 12:06:42 AM UTC-5, Chad Austin wrote: > > What errors do you get? > > > On Wed, Apr 23, 2014 at 10:03 PM, <[email protected] <javascript:>>wrote: > >> What compile flags are used with --closure? I want to manually run >> Closure Compiler on my emscripten generated javascript to combine it with >> another javascript file. It works with --closure but I'm getting a couple >> errors when I do it myself with Closure Compiler. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Chad Austin > Technical Director, IMVU > http://engineering.imvu.com <http://www.imvu.com/members/Chad/> > http://chadaustin.me > > > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
