flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshtynj...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - FLEX-35332: compiler-jx: fixed issue in SourceMapDirectiveEmitter where it incorrectly emitted source map directive referencing file extension .mxml.map instead of .js.map for MXML files
Date Wed, 28 Jun 2017 22:16:46 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 31244afad -> d79844028


FLEX-35332: compiler-jx: fixed issue in SourceMapDirectiveEmitter where it incorrectly emitted
source map directive referencing file extension .mxml.map instead of .js.map for MXML files


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

Branch: refs/heads/develop
Commit: d798440282af8d46df396bef3b0eb724919bdfcc
Parents: 31244af
Author: Josh Tynjala <joshtynjala@apache.org>
Authored: Wed Jun 28 15:16:46 2017 -0700
Committer: Josh Tynjala <joshtynjala@apache.org>
Committed: Wed Jun 28 15:16:46 2017 -0700

----------------------------------------------------------------------
 .../internal/codegen/js/jx/SourceMapDirectiveEmitter.java         | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/d7984402/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/SourceMapDirectiveEmitter.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/SourceMapDirectiveEmitter.java
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/SourceMapDirectiveEmitter.java
index 4bf158f..f25ff06 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/SourceMapDirectiveEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/SourceMapDirectiveEmitter.java
@@ -33,7 +33,6 @@ public class SourceMapDirectiveEmitter extends JSSubEmitter implements
 {
     private static final String SOURCE_MAP_PREFIX = "//# sourceMappingURL=./";
     private static final String EXTENSION_JS = ".js";
-    private static final String EXTENSION_MXML = ".mxml";
     private static final String EXTENSION_MAP = ".map";
     
     public SourceMapDirectiveEmitter(IJSEmitter emitter)
@@ -63,7 +62,7 @@ public class SourceMapDirectiveEmitter extends JSSubEmitter implements
             if (node instanceof IMXMLDocumentNode)
             {
                 IMXMLDocumentNode mxmlNode = (IMXMLDocumentNode) node;
-                name = mxmlNode.getFileNode().getName() + EXTENSION_MXML;
+                name = mxmlNode.getFileNode().getName() + EXTENSION_JS;
             }
             writeNewline();
             write(SOURCE_MAP_PREFIX + name + EXTENSION_MAP);


Mime
View raw message