Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws.

This commit is contained in:
Florian Queze
2017-04-27 00:25:45 +02:00
parent b375af8b79
commit 6cc0b6e992
137 changed files with 767 additions and 790 deletions

View File

@@ -1503,7 +1503,7 @@ var Impl = {
delayedInit() {
this._log.trace("delayedInit");
this._delayedInitTask = (async function() {
this._delayedInitTask = (async () => {
try {
this._initialized = true;
@@ -1548,7 +1548,7 @@ var Impl = {
this._delayedInitTask = null;
throw e;
}
}.bind(this))();
})();
return this._delayedInitTask;
},
@@ -2010,7 +2010,7 @@ var Impl = {
this._initialized = false;
};
return (async function() {
return (async () => {
await this.saveShutdownPings();
if (IS_UNIFIED_TELEMETRY) {
@@ -2018,7 +2018,7 @@ var Impl = {
}
reset();
}.bind(this))();
})();
};
// We can be in one the following states here: