On Sun, Apr 21, 2013 at 11:13 AM, <
eder...@gmail.com> wrote:
> JQuery 2.0.0 ->
http://code.jquery.com/jquery-2.0.0.js
> Online Compiler ->
http://closure-compiler.appspot.com
>
> Number of errors: 29
>
> I'm trying to compile programmatically, with the same problem.
>
> private static String compile(String code, String fileName) {
> Compiler compiler = new Compiler();
> CompilerOptions options = new CompilerOptions();
> CompilationLevel.SIMPLE_OPTIMIZATIONS
> .setOptionsForCompilationLevel(options);
> SourceFile extern = SourceFile.fromCode("externs.js",
> "function alert(x) {}");
> SourceFile input = SourceFile.fromCode(fileName, code);
> compiler.compile(extern, input, options);
> return compiler.toSource();
> }
>
> Any solution?
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Closure Library Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
closure-library-d...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>