mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 22:05:40 +00:00
Bug 984806 - Convert to Promise.jsm in the Webapp Runtime. r=marco
This commit is contained in:
parent
30db8a400a
commit
3472025670
@ -4,7 +4,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
let promise = Cu.import("resource://gre/modules/commonjs/sdk/core/promise.js", {}).Promise;
|
||||
const { Promise } = Cu.import("resource://gre/modules/Promise.jsm", {});
|
||||
|
||||
/**
|
||||
* WebappRT-specific actors.
|
||||
@ -90,7 +90,7 @@ WebappTabList.prototype.getList = function() {
|
||||
this._mustNotify = true;
|
||||
this._checkListening();
|
||||
|
||||
return promise.resolve([actor for ([_, actor] of this._actorByBrowser)]);
|
||||
return Promise.resolve([actor for ([_, actor] of this._actorByBrowser)]);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user