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/develop
Commit: 153b51e24caa89e04e913d98e8e633f772247053
Parents: 27aa1dc
Author: Alex Harui <[email protected]>
Authored: Thu Apr 20 20:12:57 2017 -0700
Committer: Alex Harui <[email protected]>
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))

Reply via email to