| Index: lib/compat.js |
| diff --git a/lib/compat.js b/lib/compat.js |
| index c2b09dd500f241a8dc1ace2c7bbae6259d15b42a..07360c8d174e52e6ca6b3f8966cfaaca46bdf0d5 100644 |
| --- a/lib/compat.js |
| +++ b/lib/compat.js |
| @@ -53,8 +53,7 @@ let onShutdown = { |
| function nsIFileURL() {} |
| function nsIHttpChannel() {} |
| -let Components = |
| -{ |
| +let Components = { |
| interfaces: |
| { |
| nsIFile: {DIRECTORY_TYPE: 0}, |
| @@ -94,8 +93,7 @@ const Ci = Components.interfaces; |
| const Cr = Components.results; |
| const Cu = Components.utils; |
| -let XPCOMUtils = |
| -{ |
| +let XPCOMUtils = { |
| generateQI() {} |
| }; |
| @@ -136,8 +134,7 @@ FakeFile.prototype = |
| // Services.jsm module emulation |
| // |
| -let Services = |
| -{ |
| +let Services = { |
| obs: { |
| addObserver() {}, |
| removeObserver() {} |
| @@ -210,22 +207,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) |
| @@ -242,7 +237,7 @@ FakeTimer.prototype = |
| { |
| this.callback(); |
| } |
| - catch(e) |
| + catch (e) |
| { |
| Cu.reportError(e); |
| } |
| @@ -255,8 +250,7 @@ FakeTimer.prototype = |
| // Add a channel property to XMLHttpRequest, Synchronizer needs it |
| // |
| -XMLHttpRequest.prototype.channel = |
| -{ |
| +XMLHttpRequest.prototype.channel = { |
| status: -1, |
| notificationCallbacks: {}, |
| loadFlags: 0, |