This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new 42338fb test case for #126
42338fb is described below
commit 42338fb2aa375af58d034f9d5de3c05a4ff8d651
Author: Alex Harui <[email protected]>
AuthorDate: Fri Mar 27 23:46:51 2020 -0700
test case for #126
---
.../internal/codegen/js/royale/TestRoyaleExpressions.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git
a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java
b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java
index 2999843..a9062b9 100644
---
a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java
+++
b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java
@@ -1306,6 +1306,16 @@ public class TestRoyaleExpressions extends
TestGoogExpressions
assertOut("/**\n * @export\n * @return {number}\n
*/\nfoo.bar.B.prototype.b = function() {\n var /** @type {Array.<string>} */ a
= null;\n return a.length;\n}");
}
+ @Ignore
+ public void testFunctionProperty()
+ {
+ IFunctionNode node = (IFunctionNode) getNode(
+ "public class B { public function a():void { b(c); } public
function set b(v:Function):void {} public function get b():Function { return
null; } public function get c():Object { return null; } public function set
c(v:Object):void {} }",
+ IFunctionNode.class, WRAP_LEVEL_PACKAGE);
+ asBlockWalker.visitFunction(node);
+ assertOut("/**\n * @export\n */\nB.prototype.a = function() {\n
this.b(this.c);\n}");
+ }
+
//----------------------------------
// Other
//----------------------------------