You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/11/10 19:05:53 UTC

[7/7] git commit: [flex-falcon] [refs/heads/develop] - fix unit tests

fix unit tests


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

Branch: refs/heads/develop
Commit: f612a79f08eb63c8eb7fe182124a4f970beb1264
Parents: edb8bcb
Author: Alex Harui <ah...@apache.org>
Authored: Mon Nov 10 10:05:34 2014 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Nov 10 10:05:34 2014 -0800

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


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f612a79f/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
index 758bacd..efaae41 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
@@ -1074,7 +1074,8 @@ public class JSFlexJSEmitter extends JSGoogEmitter implements IJSFlexJSEmitter
     private void emitIsAs(IExpressionNode left, IExpressionNode right, 
             ASTNodeID id, boolean coercion)
     {
-        IDefinition dnode = (right).resolve(project);
+    	// project is null in unit tests
+        IDefinition dnode = project != null ? (right).resolve(project) : null;
     	if (id != ASTNodeID.Op_IsID && dnode != null)
     	{
     		// find the function node