Bug 984806 - Convert to Promise.jsm in the Webapp Runtime. r=marco

This commit is contained in:
Paolo Amadini 2014-03-21 09:43:34 +01:00
parent 30db8a400a
commit 3472025670

View File

@ -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)]);
};
/**