Bug 985980 - Restore off main thread logging for OS.File. r=froydnj

This commit is contained in:
David Rajchenbach-Teller 2014-03-21 09:07:30 -04:00
parent f26077df2b
commit 2bced72af6

View File

@ -108,7 +108,7 @@ exports.defineLazyGetter = defineLazyGetter;
* The choice of logger can be overridden with Config.TEST.
*/
let gLogger;
if (typeof console != "undefined" && console.log) {
if (typeof window != "undefined" && window.console && console.log) {
gLogger = console.log.bind(console, "OS");
} else {
gLogger = function(...args) {