flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [12/18] git commit: [flex-falcon] [refs/heads/develop] - turn on es5 strict
Date Wed, 08 Apr 2015 23:05:18 GMT
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 <aharui@apache.org>
Authored: Tue Apr 7 11:14:15 2015 -0700
Committer: Alex Harui <aharui@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);
             


Mime
View raw message