flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/2] git commit: [flex-falcon] [refs/heads/develop] - special case the constructor function
Date Wed, 04 Nov 2015 20:57:03 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 5b40806dd -> 75be2e093


special case the constructor function


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

Branch: refs/heads/develop
Commit: 7448d30ed06af655141a43ee1fc296651338ad68
Parents: 1aef32d
Author: Alex Harui <aharui@apache.org>
Authored: Wed Nov 4 12:56:14 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Nov 4 12:56:14 2015 -0800

----------------------------------------------------------------------
 .../flex/compiler/internal/codegen/js/jx/MemberAccessEmitter.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7448d30e/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/MemberAccessEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/MemberAccessEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/MemberAccessEmitter.java
index 6db5614..8b5fd3b 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/MemberAccessEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/MemberAccessEmitter.java
@@ -62,7 +62,8 @@ public class MemberAccessEmitter extends JSSubEmitter implements
         if (def != null && def.isStatic())
             isStatic = true;
         boolean needClosure = false;
-        if (def instanceof FunctionDefinition && (!(def instanceof AccessorDefinition)))
+        if (def instanceof FunctionDefinition && (!(def instanceof AccessorDefinition))
+        		&& !def.getBaseName().equals("constructor")) // don't wrap references to
obj.constructor
         {
         	IASNode parentNode = node.getParent();
         	if (parentNode != null)


Mime
View raw message