This is an automated email from the ASF dual-hosted git repository.
joshtynjala 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 ac42ead IdentifierEmitter: fix issue where member access with static
getter/setter with custom namespace was missing the . operator
ac42ead is described below
commit ac42eadd5a8b8d89bc66c997d811aeb9b75b5bb1
Author: Josh Tynjala <[email protected]>
AuthorDate: Thu Feb 6 15:13:58 2020 -0800
IdentifierEmitter: fix issue where member access with static getter/setter
with custom namespace was missing the . operator
---
.../royale/compiler/internal/codegen/js/jx/IdentifierEmitter.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/IdentifierEmitter.java
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/IdentifierEmitter.java
index a8493e1..00f82b9 100644
---
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/IdentifierEmitter.java
+++
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/IdentifierEmitter.java
@@ -320,7 +320,7 @@ public class IdentifierEmitter extends JSSubEmitter
implements
if (nodeDef instanceof IAccessorDefinition &&
((IMemberAccessExpressionNode) parentNode).getOperator() ==
IOperatorNode.OperatorType.MEMBER_ACCESS)
wasCustomNamespace =
fjs.isCustomNamespace((FunctionDefinition)nodeDef);
- if (nodeDef.isStatic() || !wasCustomNamespace) {
+ if (!wasCustomNamespace) {
//we already wrote member access before walking to
this node.
accessWithNS = false;
}