flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [3/7] git commit: [flex-falcon] [refs/heads/dual] - keep native classes out of static dependency list
Date Mon, 01 May 2017 03:12:56 GMT
keep native classes out of static dependency list


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

Branch: refs/heads/dual
Commit: 153b51e24caa89e04e913d98e8e633f772247053
Parents: 27aa1dc
Author: Alex Harui <aharui@apache.org>
Authored: Thu Apr 20 20:12:57 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Apr 20 20:12:57 2017 -0700

----------------------------------------------------------------------
 .../flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/153b51e2/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
index 2c2050a..897408f 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
@@ -548,7 +548,7 @@ public class JSFlexJSEmitter extends JSGoogEmitter implements IJSFlexJSEmitter
     	else if (!isDoc)
     	{
         	if (getModel().inStaticInitializer)
-        		if (!staticUsedNames.contains(name))
+        		if (!staticUsedNames.contains(name) && !NativeUtils.isJSNative(name))
         			staticUsedNames.add(name);
     		
     		if (!usedNames.contains(name))


Mime
View raw message