You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/04/09 01:05:18 UTC

[12/18] git commit: [flex-falcon] [refs/heads/develop] - turn on es5 strict

turn on es5 strict


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/42de2596
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/42de2596
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/42de2596

Branch: refs/heads/develop
Commit: 42de259648d91c13369f72a55be7e9792f254693
Parents: d9658d6
Author: Alex Harui <ah...@apache.org>
Authored: Tue Apr 7 11:14:15 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Apr 7 11:14:15 2015 -0700

----------------------------------------------------------------------
 .../org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/42de2596/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java b/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
index b16522a..b4c7d5e 100644
--- a/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
+++ b/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
@@ -31,6 +31,7 @@ import com.google.javascript.jscomp.CommandLineRunner;
 import com.google.javascript.jscomp.CompilationLevel;
 import com.google.javascript.jscomp.Compiler;
 import com.google.javascript.jscomp.CompilerOptions;
+import com.google.javascript.jscomp.CompilerOptions.LanguageMode;
 import com.google.javascript.jscomp.DependencyOptions;
 import com.google.javascript.jscomp.DiagnosticGroups;
 import com.google.javascript.jscomp.FlexJSDiagnosticGroups;
@@ -153,7 +154,7 @@ public class JSClosureCompilerWrapper
                     "goog.DEBUG", new Node(Token.TRUE));
             
             // ToDo (erikdebruin): re-evaluate this option on future GC release
-            //options_.setLanguageIn(LanguageMode.ECMASCRIPT6_STRICT);
+            options_.setLanguageIn(LanguageMode.ECMASCRIPT5_STRICT);
             
             options_.setPreferSingleQuotes(true);