зеркало из https://github.com/mozilla/gecko-dev.git
Bug 949325 - C++ wrapper to support DataStore API on the worker (part 2-4, should create array based on the window to return). r=baku
This commit is contained in:
Родитель
1268aa20e8
Коммит
5679c542e5
|
@ -308,7 +308,7 @@ DataStoreService.prototype = {
|
|||
getDataStoreCreate: function(aWindow, aResolve, aStores) {
|
||||
debug("GetDataStoreCreate");
|
||||
|
||||
let results = [];
|
||||
let results = new aWindow.Array();
|
||||
|
||||
if (!aStores.length) {
|
||||
aResolve(results);
|
||||
|
@ -342,7 +342,7 @@ DataStoreService.prototype = {
|
|||
debug("GetDataStoreResolve");
|
||||
|
||||
let callbackPending = aStores.length;
|
||||
let results = [];
|
||||
let results = new aWindow.Array();
|
||||
|
||||
if (!callbackPending) {
|
||||
aResolve(results);
|
||||
|
|
Загрузка…
Ссылка в новой задаче