mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
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:
parent
1268aa20e8
commit
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);
|
||||
|
Loading…
Reference in New Issue
Block a user