Index: lib/compat.js |
diff --git a/lib/compat.js b/lib/compat.js |
index 21439f3d353d904341f2b54ac7fe7f14190ac3bd..77e970a205d755bb2eed2aa0a74daa49f96af69e 100644 |
--- a/lib/compat.js |
+++ b/lib/compat.js |
@@ -50,8 +50,7 @@ let onShutdown = { |
// XPCOM emulation |
// |
-let Components = |
-{ |
+let Components = { |
interfaces: |
{ |
nsIFile: {DIRECTORY_TYPE: 0}, |
@@ -91,8 +90,7 @@ const Ci = Components.interfaces; |
const Cr = Components.results; |
const Cu = Components.utils; |
-let XPCOMUtils = |
-{ |
+let XPCOMUtils = { |
generateQI() {} |
}; |
@@ -133,8 +131,7 @@ FakeFile.prototype = |
// Services.jsm module emulation |
// |
-let Services = |
-{ |
+let Services = { |
obs: { |
addObserver() {}, |
removeObserver() {} |
@@ -207,22 +204,20 @@ let Services = |
return 0; |
} |
} |
-} |
+}; |
// |
// FileUtils.jsm module emulation |
// |
-let FileUtils = |
-{ |
+let FileUtils = { |
PERMS_DIRECTORY: 0 |
}; |
function FakeTimer() |
{ |
} |
-FakeTimer.prototype = |
-{ |
+FakeTimer.prototype = { |
delay: 0, |
callback: null, |
initWithCallback(callback, delay) |
@@ -239,7 +234,7 @@ FakeTimer.prototype = |
{ |
this.callback(); |
} |
- catch(e) |
+ catch (e) |
{ |
Cu.reportError(e); |
} |
@@ -252,8 +247,7 @@ FakeTimer.prototype = |
// Add a channel property to XMLHttpRequest, Synchronizer needs it |
// |
-XMLHttpRequest.prototype.channel = |
-{ |
+XMLHttpRequest.prototype.channel = { |
status: -1, |
notificationCallbacks: {}, |
loadFlags: 0, |