1. dojo
  2. util

Commits

jrburke  committed e0aa2ef

Fixes #11853, properties changed in latest Closure Compiler, thanks to James Thomas.

  • Participants
  • Parent commits 304673e
  • Branches default

Comments (0)

Files changed (1)

File buildscripts/jslib/buildUtil.js

View file
  • Ignore whitespace
 			//Set up options
 			var options = new jscomp.CompilerOptions();
 			options.prettyPrint = optimizeType.indexOf(".keepLines") !== -1;
-			var FLAG_compilation_level = flags.Flag.value(jscomp.CompilationLevel.SIMPLE_OPTIMIZATIONS);
-			FLAG_compilation_level.get().setOptionsForCompilationLevel(options);
-			var FLAG_warning_level = flags.Flag.value(jscomp.WarningLevel.DEFAULT);
-			FLAG_warning_level.get().setOptionsForWarningLevel(options);
+
+			var FLAG_compilation_level = jscomp.CompilationLevel.SIMPLE_OPTIMIZATIONS;
+			FLAG_compilation_level.setOptionsForCompilationLevel(options);                  
+			var FLAG_warning_level = jscomp.WarningLevel.DEFAULT;                   
+			FLAG_warning_level.setOptionsForWarningLevel(options);
 
 			//Run the compiler
 			var compiler = new Packages.com.google.javascript.jscomp.Compiler(Packages.java.lang.System.err);