From 1de24ce2ba5f7198a3f0a674fae3c821e03e3402 Mon Sep 17 00:00:00 2001 From: Noemi Erli Date: Tue, 24 Mar 2020 19:39:12 +0200 Subject: [PATCH] Backed out changeset 717435e37281 (bug 1624622) for causing xpcshell failures CLOSED TREE --- toolkit/components/promiseworker/worker/PromiseWorker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/components/promiseworker/worker/PromiseWorker.js b/toolkit/components/promiseworker/worker/PromiseWorker.js index 8e6e447d3162..07c0975a1262 100644 --- a/toolkit/components/promiseworker/worker/PromiseWorker.js +++ b/toolkit/components/promiseworker/worker/PromiseWorker.js @@ -100,7 +100,7 @@ AbstractWorker.prototype = { /** * Handle a message. */ - async handleMessage(msg) { + handleMessage(msg) { let data = msg.data; this.log("Received message", data); let id = data.id; @@ -126,7 +126,7 @@ AbstractWorker.prototype = { 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;