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 2016/02/24 06:44:50 UTC

[09/15] git commit: [flex-asjs] [refs/heads/spark] - Core: Language now checks for global console variable as final fallback, which adds trace() support for Node.js release builds

Core: Language now checks for global console variable as final fallback, which adds trace() support for Node.js release builds


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

Branch: refs/heads/spark
Commit: de73400c02cd3b3ffceaaa65b90e0cc85b69300c
Parents: 3f3f3cf
Author: Josh Tynjala <jo...@apache.org>
Authored: Fri Feb 12 11:29:26 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Feb 23 21:44:21 2016 -0800

----------------------------------------------------------------------
 .../Core/src/main/flex/org/apache/flex/utils/Language.as         | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/de73400c/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Language.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Language.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Language.as
index e3a318c..2586e77 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Language.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Language.as
@@ -312,6 +312,10 @@ package org.apache.flex.utils
 				{
 					theConsole = window.console;
 				}
+				else if(typeof console !== "undefined")
+				{
+					theConsole = console;
+				}
 			}
 
 			try