Index: lib/compat.js |
diff --git a/lib/compat.js b/lib/compat.js |
index bdb30840ea8e8333a0d487ef54096c53e5ba6611..0e6682dede12aa72cfc0236d096388ccd130a7ef 100644 |
--- a/lib/compat.js |
+++ b/lib/compat.js |
@@ -33,13 +33,6 @@ function require(module) |
require.modules = Object.create(null); |
require.scopes = Object.create(null); |
-function importAll(module, globalObj) |
-{ |
- let exports = require(module); |
- for (let key in exports) |
- globalObj[key] = exports[key]; |
-} |
- |
let onShutdown = { |
done: false, |
add() {}, |
@@ -53,8 +46,7 @@ let onShutdown = { |
function nsIFileURL() {} |
function nsIHttpChannel() {} |
-let Components = |
-{ |
+let Components = { |
interfaces: |
{ |
nsIFile: {DIRECTORY_TYPE: 0}, |
@@ -94,8 +86,7 @@ const Ci = Components.interfaces; |
const Cr = Components.results; |
const Cu = Components.utils; |
-let XPCOMUtils = |
-{ |
+let XPCOMUtils = { |
generateQI() {} |
}; |
@@ -136,8 +127,7 @@ FakeFile.prototype = |
// Services.jsm module emulation |
// |
-let Services = |
-{ |
+let Services = { |
obs: { |
addObserver() {}, |
removeObserver() {} |
@@ -210,14 +200,13 @@ let Services = |
return 0; |
} |
} |
-} |
+}; |
// |
// FileUtils.jsm module emulation |
// |
-let FileUtils = |
-{ |
+let FileUtils = { |
PERMS_DIRECTORY: 0 |
}; |
@@ -242,7 +231,7 @@ FakeTimer.prototype = |
{ |
this.callback(); |
} |
- catch(e) |
+ catch (e) |
{ |
Cu.reportError(e); |
} |
@@ -255,8 +244,7 @@ FakeTimer.prototype = |
// Add a channel property to XMLHttpRequest, Synchronizer needs it |
// |
-XMLHttpRequest.prototype.channel = |
-{ |
+XMLHttpRequest.prototype.channel = { |
status: -1, |
notificationCallbacks: {}, |
loadFlags: 0, |