You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2020/04/17 22:49:01 UTC

[royale-compiler] branch develop updated: Fix for-each iteration of ArrayCollection - was not working with 'member-access' for-each iteration target

This is an automated email from the ASF dual-hosted git repository.

gregdove 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 b7ff95a  Fix for-each iteration of ArrayCollection - was not working with 'member-access' for-each iteration target
b7ff95a is described below

commit b7ff95a7eea4c582f4fef56f65afe7c064356e64
Author: greg-dove <gr...@gmail.com>
AuthorDate: Sat Apr 18 09:44:02 2020 +1200

    Fix for-each iteration of ArrayCollection - was not working with 'member-access' for-each iteration target
---
 .../apache/royale/compiler/internal/codegen/js/jx/ForEachEmitter.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/ForEachEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/ForEachEmitter.java
index 4920604..46fc13a 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/ForEachEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/ForEachEmitter.java
@@ -134,7 +134,7 @@ public class ForEachEmitter extends JSSubEmitter implements
             if (((JSRoyaleEmitter)getEmitter()).isProxy((IMemberAccessExpressionNode)obj))
             {
                 write(".propertyNames()");
-                isXML = true;
+                isProxy = true;
             }
         }
         else if (obj.getNodeID() == ASTNodeID.Op_AsID)