Adding --warning_level QUIET got rid of the warnings.

The javascript produced when I run it manually is 50KB smaller than using 
--closure with emcc.  I'm just curious what flags and options it's using 
specifically.

(Also I deleted my original reply because it wasn't working with 
ADVANCED_OPTIMIZATIONS.  I was testing the wrong file but it works without 
this option.) 

On Thursday, April 24, 2014 11:40:35 AM UTC-5, Chad Austin wrote:
>
>
> On Apr 24, 2014, at 9:26 AM, [email protected] <javascript:> wrote:
>
> It worked by adding --language_in=ECMASCRIPT5.  I'm also using 
> --compilation_level 
> ADVANCED_OPTIMIZATIONS with Closure Compiler.
>
>
> Ah ha, that makes sense, then. There is no reason for Emscripten to limit 
> itself to ECMAScript 3.
>
> 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]> 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].
>>> 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] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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.

Reply via email to