flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - try to fix test
Date Mon, 03 Jul 2017 17:21:32 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop e2ed46dad -> cf18b3045


try to fix test


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

Branch: refs/heads/develop
Commit: cf18b30454e380896076e34a47abb5c7e35351af
Parents: e2ed46d
Author: Alex Harui <aharui@apache.org>
Authored: Mon Jul 3 10:21:28 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Jul 3 10:21:28 2017 -0700

----------------------------------------------------------------------
 .../flex/compiler/internal/codegen/js/jx/LiteralEmitter.java  | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/cf18b304/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/LiteralEmitter.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/LiteralEmitter.java
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/LiteralEmitter.java
index af5e2d2..34b70cc 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/LiteralEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/LiteralEmitter.java
@@ -176,7 +176,14 @@ public class LiteralEmitter extends JSSubEmitter implements
         }
         else
         {
+            s = s.replaceAll("\\\\s", "__S_PLACEHOLDER__");
+            s = s.replaceAll("\\\\w", "__W_PLACEHOLDER__");
+            s = s.replaceAll("\\\\\\.", "__DOT_PLACEHOLDER__");
             s = StringEscapeUtils.escapeJava(s);
+            s = s.replaceAll("__S_PLACEHOLDER__", "\\\\s");
+            s = s.replaceAll("__W_PLACEHOLDER__", "\\\\w");
+            s = s.replaceAll("__DOT_PLACEHOLDER__", "\\\\.");
+            s = s.replaceAll("\\\\\"", "\\\"");
             s = s.replaceAll("\\\\n", "\\\\u000a");
             s = s.replaceAll("\\\\r", "\\\\u000d");
             s = s.replaceAll("\\\\t", "\\\\u0009");        	


Mime
View raw message