fx-compat: DB.executeTransaction() no longer takes generator functions
This commit is contained in:
parent
ccbc785499
commit
03242e8984
41 changed files with 319 additions and 320 deletions
|
@ -8,8 +8,8 @@ describe("Zotero.Creators", function() {
|
|||
lastName: "Last"
|
||||
};
|
||||
var creatorID;
|
||||
yield Zotero.DB.executeTransaction(function* () {
|
||||
creatorID = yield Zotero.Creators.getIDFromData(data1, true);
|
||||
yield Zotero.DB.executeTransaction(async function () {
|
||||
creatorID = await Zotero.Creators.getIDFromData(data1, true);
|
||||
});
|
||||
assert.typeOf(creatorID, 'number');
|
||||
var data2 = Zotero.Creators.get(creatorID);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue