Backed out changeset 717435e37281 (bug 1624622) for causing xpcshell failures CLOSED TREE
authorNoemi Erli <nerli@mozilla.com>
Tue, 24 Mar 2020 19:39:12 +0200
changeset 520253 5792d602f984aa75939eac8f73ae06babb19b312
parent 520252 260943877d936455d836d5e1c967365bccc7ece2
child 520254 6bd429e30868ccaeba7a03f4aff7fc282c025d4d
push id37246
push useropoprus@mozilla.com
push dateWed, 25 Mar 2020 03:40:33 +0000
treeherdermozilla-central@14b59d4adc95 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1624622
milestone76.0a1
backs out717435e372817457a2dd2befa5a8bf1a461283e4
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 717435e37281 (bug 1624622) for causing xpcshell failures CLOSED TREE
toolkit/components/promiseworker/worker/PromiseWorker.js
--- a/toolkit/components/promiseworker/worker/PromiseWorker.js
+++ b/toolkit/components/promiseworker/worker/PromiseWorker.js
@@ -95,17 +95,17 @@ function AbstractWorker(agent) {
 }
 AbstractWorker.prototype = {
   // Default logger: discard all messages
   log() {},
 
   /**
    * Handle a message.
    */
-  async handleMessage(msg) {
+  handleMessage(msg) {
     let data = msg.data;
     this.log("Received message", data);
     let id = data.id;
 
     let start;
     let options;
     if (data.args) {
       options = data.args[data.args.length - 1];
@@ -121,17 +121,17 @@ AbstractWorker.prototype = {
     }
 
     let result;
     let exn;
     let durationMs;
     let method = data.fun;
     try {
       this.log("Calling method", method);
-      result = await this.dispatch(method, data.args);
+      result = this.dispatch(method, data.args);
       this.log("Method", method, "succeeded");
     } catch (ex) {
       exn = ex;
       this.log(
         "Error while calling agent method",
         method,
         exn,
         exn.moduleStack || exn.stack || ""