flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [11/17] git commit: [flex-falcon] [refs/heads/develop] - For now, VF2JS doesn't output 'const'
Date Fri, 21 Nov 2014 12:10:31 GMT
For now, VF2JS doesn't output 'const'

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>


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

Branch: refs/heads/develop
Commit: 4515e7b2b6c3d2b2e1c898d2062ad4d28b52f2b0
Parents: 9457afe
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Fri Nov 21 12:08:18 2014 +0100
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Fri Nov 21 12:08:18 2014 +0100

----------------------------------------------------------------------
 .../internal/codegen/js/vf2js/TestVF2JSStatements.java      | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/4515e7b2/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/vf2js/TestVF2JSStatements.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/vf2js/TestVF2JSStatements.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/vf2js/TestVF2JSStatements.java
index 3487afb..431d01d 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/vf2js/TestVF2JSStatements.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/vf2js/TestVF2JSStatements.java
@@ -97,7 +97,8 @@ public class TestVF2JSStatements extends TestGoogStatements
         IVariableNode node = (IVariableNode) getNode("const a = 42;",
                 IVariableNode.class);
         asBlockWalker.visitVariable(node);
-        assertOut("const /** @type {*} */ a = 42");
+        assertOut("var /** @type {*} */ a = 42");
+        // ToDo (erikdebruin): assertOut("const /** @type {*} */ a = 42");
     }
 
     @Override
@@ -107,7 +108,8 @@ public class TestVF2JSStatements extends TestGoogStatements
         IVariableNode node = (IVariableNode) getNode("const a:int = 42;",
                 IVariableNode.class);
         asBlockWalker.visitVariable(node);
-        assertOut("const /** @type {number} */ a = 42");
+        assertOut("var /** @type {number} */ a = 42");
+        // ToDo (erikdebruin): assertOut("const /** @type {number} */ a = 42");
     }
 
     @Override
@@ -117,7 +119,8 @@ public class TestVF2JSStatements extends TestGoogStatements
         IVariableNode node = (IVariableNode) getNode(
                 "const a:int = 4, b:int = 11, c:int = 42;", IVariableNode.class);
         asBlockWalker.visitVariable(node);
-        assertOut("const /** @type {number} */ a = 4, /** @type {number} */ b = 11, /** @type
{number} */ c = 42");
+        assertOut("var /** @type {number} */ a = 4, /** @type {number} */ b = 11, /** @type
{number} */ c = 42");
+        // ToDo (erikdebruin): assertOut("const /** @type {number} */ a = 4, /** @type {number}
*/ b = 11, /** @type {number} */ c = 42");
     }
     
     //----------------------------------


Mime
View raw message