You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/11/07 21:56:50 UTC

[royale-compiler] 02/02: we do need this code for prioritizing static dependencies for the patterns that initialize a static on the same class in order to run some setup code. Fixes #98

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

commit 26ae0dc7994273a9d2c41502af30f5324e3fdb7a
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Nov 7 13:56:35 2019 -0800

    we do need this code for prioritizing static dependencies for the patterns that initialize a static on the same class in order to run some setup code.  Fixes #98
---
 .../org/apache/royale/compiler/internal/codegen/js/jx/FieldEmitter.java | 2 --
 1 file changed, 2 deletions(-)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FieldEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FieldEmitter.java
index 6cf5dd2..6254e11 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FieldEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FieldEmitter.java
@@ -301,7 +301,6 @@ public class FieldEmitter extends JSSubEmitter implements
         {
         	getModel().inStaticInitializer = ndef.isStatic();
             String vnodeString = getEmitter().stringifyNode(vnode);
-            /*
             if (ndef.isStatic() && vnode instanceof FunctionCallNode)
             {
                 FunctionCallNode fcn = (FunctionCallNode)vnode;
@@ -337,7 +336,6 @@ public class FieldEmitter extends JSSubEmitter implements
                     }
             	}
             }
-            */
         	getModel().inStaticInitializer = false;
         	if ((ndef.isStatic() && !EmitterUtils.needsStaticInitializer(vnodeString, className)) ||
         			(!ndef.isStatic() && EmitterUtils.isScalar(vnode)) ||