mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 985980 - Restore off main thread logging for OS.File. r=froydnj
This commit is contained in:
parent
5396ba911c
commit
89a19eb4f8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user