mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1166406 - use Object.create in sync code, r=rnewman
This commit is contained in:
parent
41be5bed7b
commit
7fbd93437e
@ -194,9 +194,9 @@ this.Async = {
|
||||
|
||||
querySpinningly: function querySpinningly(query, names) {
|
||||
// 'Synchronously' asyncExecute, fetching all results by name.
|
||||
let storageCallback = {names: names,
|
||||
syncCb: Async.makeSyncCallback()};
|
||||
storageCallback.__proto__ = Async._storageCallbackPrototype;
|
||||
let storageCallback = Object.create(Async._storageCallbackPrototype);
|
||||
storageCallback.names = names;
|
||||
storageCallback.syncCb = Async.makeSyncCallback();
|
||||
query.executeAsync(storageCallback);
|
||||
return Async.waitForSyncCallback(storageCallback.syncCb);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user