Google Closure with ADVANCED_OPTIMIZATIONS

30 views
Skip to first unread message

Jay

unread,
Jun 2, 2010, 5:41:29 PM6/2/10
to MooTools Users
I'm trying to run the Google Closure Compiler at http://closure-compiler.appspot.com/home
with advanced optimizations, and the code it's spitting out doesn't
work at all, and it's tossing more JSC_USED_GLOBAL_THIS warnings than
you can shake a stick at.

Any ideas?

Here are my options I'm using:

// ==ClosureCompiler==
// @compilation_level ADVANCED_OPTIMIZATIONS
// @output_file_name default.js
// @code_url http://smmirror.jaycarlson.net/js/debug/js.php
// ==/ClosureCompiler==

Fábio M. Costa

unread,
Jun 2, 2010, 7:20:49 PM6/2/10
to mootool...@googlegroups.com
Use Advance optimizations only if you really know what your doing.
It changes object keys, and stuff so you cant use the resulting code anywhere else.
Did it help?
Cya around.

--
Fábio Miranda Costa
Solucione Sistemas
Engenheiro de interfaces
Twitter: fabiomiranda
http://solucione.info

Jay

unread,
Jun 2, 2010, 8:07:20 PM6/2/10
to MooTools Users
That's fine -- that single javascript file contains everything; all
the MooTools libraries, my custom classes, plus implementation code.
But the code it spits out doesn't work at all.

On Jun 2, 6:20 pm, Fábio M. Costa <fa...@solucione.info> wrote:
> Use Advance optimizations only if you really know what your doing.
> It changes object keys, and stuff so you cant use the resulting code
> anywhere else.
> Did it help?
> Cya around.
>
> --
> Fábio Miranda Costa
> Solucione Sistemas
> Engenheiro de interfaces
> Twitter: fabiomirandahttp://solucione.info

amadeus

unread,
Jun 3, 2010, 10:52:57 AM6/3/10
to MooTools Users
No, that's the point. The code is probably not compiling because it
isn't written properly for the closure compiler.

Thierry bela nanga

unread,
Jun 3, 2010, 11:17:12 AM6/3/10
to mootool...@googlegroups.com
the compilation may fail if you use reserved keywords such as 'interface' or 'class',

or your code contains bugs,
--
http://tbela99.blogspot.com/

fax : (+33) 08 26 51 94 51
Reply all
Reply to author
Forward
0 new messages