flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [10/19] git commit: [flex-falcon] [refs/heads/develop] - return null instead of undefined
Date Wed, 25 May 2016 18:25:17 GMT
return null instead of undefined


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

Branch: refs/heads/develop
Commit: 58e39c0deb7bbc8da54d319753e4089dbde87aba
Parents: 4faa1c9
Author: Alex Harui <aharui@apache.org>
Authored: Tue May 24 12:08:51 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue May 24 21:07:40 2016 -0700

----------------------------------------------------------------------
 .../internal/codegen/externals/reference/ConstantReference.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/58e39c0d/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/externals/reference/ConstantReference.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/externals/reference/ConstantReference.java
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/externals/reference/ConstantReference.java
index 655fe57..ff123ce 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/externals/reference/ConstantReference.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/externals/reference/ConstantReference.java
@@ -95,7 +95,7 @@ public class ConstantReference extends BaseReference
         if (map.containsKey(type))
             return map.get(type);
 
-        return "undefined";
+        return type.equals("*") ? "undefined" : "null";
     }
 
 }


Mime
View raw message