Bug 1123124 - Part 2: Remove use of expression closure from mailnews/db/. r=jcranmer

This commit is contained in:
Tooru Fujisawa 2015-04-20 00:16:23 +09:00
Родитель 52e8521b9f
Коммит dd3215a604
7 изменённых файлов: 51 добавлений и 51 удалений

Просмотреть файл

@ -62,14 +62,14 @@
} }
// yield after each batch of items so that typing the url bar is responsive // yield after each batch of items so that typing the url bar is responsive
setTimeout(function (self) { self._appendCurrentResult(); }, 0, this); setTimeout(() => this._appendCurrentResult(), 0);
]]> ]]>
</body> </body>
</method> </method>
<method name="_invalidate"> <method name="_invalidate">
<body> <body>
<![CDATA[ <![CDATA[
setTimeout(function(self) self.adjustHeight(), 0, this); setTimeout(() => this.adjustHeight(), 0);
// remove all child nodes because we never want to reuse them. // remove all child nodes because we never want to reuse them.
while (this.richlistbox.hasChildNodes()) while (this.richlistbox.hasChildNodes())

Просмотреть файл

@ -1691,7 +1691,7 @@ var GlodaDatastore = {
*/ */
get _beginTransactionStatement() { get _beginTransactionStatement() {
let statement = this._createAsyncStatement("BEGIN TRANSACTION"); let statement = this._createAsyncStatement("BEGIN TRANSACTION");
this.__defineGetter__("_beginTransactionStatement", function() statement); this.__defineGetter__("_beginTransactionStatement", () => statement);
return this._beginTransactionStatement; return this._beginTransactionStatement;
}, },
@ -1700,7 +1700,7 @@ var GlodaDatastore = {
*/ */
get _commitTransactionStatement() { get _commitTransactionStatement() {
let statement = this._createAsyncStatement("COMMIT"); let statement = this._createAsyncStatement("COMMIT");
this.__defineGetter__("_commitTransactionStatement", function() statement); this.__defineGetter__("_commitTransactionStatement", () => statement);
return this._commitTransactionStatement; return this._commitTransactionStatement;
}, },
@ -1709,7 +1709,7 @@ var GlodaDatastore = {
*/ */
get _rollbackTransactionStatement() { get _rollbackTransactionStatement() {
let statement = this._createAsyncStatement("ROLLBACK"); let statement = this._createAsyncStatement("ROLLBACK");
this.__defineGetter__("_rollbackTransactionStatement", function() statement); this.__defineGetter__("_rollbackTransactionStatement", () => statement);
return this._rollbackTransactionStatement; return this._rollbackTransactionStatement;
}, },
@ -1853,7 +1853,7 @@ var GlodaDatastore = {
"INSERT INTO attributeDefinitions (id, attributeType, extensionName, \ "INSERT INTO attributeDefinitions (id, attributeType, extensionName, \
name, parameter) \ name, parameter) \
VALUES (?1, ?2, ?3, ?4, ?5)"); VALUES (?1, ?2, ?3, ?4, ?5)");
this.__defineGetter__("_insertAttributeDefStatement", function() statement); this.__defineGetter__("_insertAttributeDefStatement", () => statement);
return this._insertAttributeDefStatement; return this._insertAttributeDefStatement;
}, },
@ -1958,7 +1958,7 @@ var GlodaDatastore = {
indexingPriority) VALUES \ indexingPriority) VALUES \
(?1, ?2, ?3, ?4, ?5)"); (?1, ?2, ?3, ?4, ?5)");
this.__defineGetter__("_insertFolderLocationStatement", this.__defineGetter__("_insertFolderLocationStatement",
function() statement); () => statement);
return this._insertFolderLocationStatement; return this._insertFolderLocationStatement;
}, },
@ -2134,7 +2134,7 @@ var GlodaDatastore = {
"UPDATE folderLocations SET dirtyStatus = ?1 \ "UPDATE folderLocations SET dirtyStatus = ?1 \
WHERE id = ?2"); WHERE id = ?2");
this.__defineGetter__("_updateFolderDirtyStatusStatement", this.__defineGetter__("_updateFolderDirtyStatusStatement",
function() statement); () => statement);
return this._updateFolderDirtyStatusStatement; return this._updateFolderDirtyStatusStatement;
}, },
@ -2150,7 +2150,7 @@ var GlodaDatastore = {
"UPDATE folderLocations SET indexingPriority = ?1 \ "UPDATE folderLocations SET indexingPriority = ?1 \
WHERE id = ?2"); WHERE id = ?2");
this.__defineGetter__("_updateFolderIndexingPriorityStatement", this.__defineGetter__("_updateFolderIndexingPriorityStatement",
function() statement); () => statement);
return this._updateFolderIndexingPriorityStatement; return this._updateFolderIndexingPriorityStatement;
}, },
@ -2166,7 +2166,7 @@ var GlodaDatastore = {
"UPDATE folderLocations SET folderURI = ?1 \ "UPDATE folderLocations SET folderURI = ?1 \
WHERE id = ?2"); WHERE id = ?2");
this.__defineGetter__("_updateFolderLocationStatement", this.__defineGetter__("_updateFolderLocationStatement",
function() statement); () => statement);
return this._updateFolderLocationStatement; return this._updateFolderLocationStatement;
}, },
@ -2195,7 +2195,7 @@ var GlodaDatastore = {
let statement = this._createAsyncStatement( let statement = this._createAsyncStatement(
"DELETE FROM folderLocations WHERE id = ?1"); "DELETE FROM folderLocations WHERE id = ?1");
this.__defineGetter__("_deleteFolderByIDStatement", this.__defineGetter__("_deleteFolderByIDStatement",
function() statement); () => statement);
return this._deleteFolderByIDStatement; return this._deleteFolderByIDStatement;
}, },
@ -2294,7 +2294,7 @@ var GlodaDatastore = {
"INSERT INTO conversations (id, subject, oldestMessageDate, \ "INSERT INTO conversations (id, subject, oldestMessageDate, \
newestMessageDate) \ newestMessageDate) \
VALUES (?1, ?2, ?3, ?4)"); VALUES (?1, ?2, ?3, ?4)");
this.__defineGetter__("_insertConversationStatement", function() statement); this.__defineGetter__("_insertConversationStatement", () => statement);
return this._insertConversationStatement; return this._insertConversationStatement;
}, },
@ -2303,7 +2303,7 @@ var GlodaDatastore = {
"INSERT INTO conversationsText (docid, subject) \ "INSERT INTO conversationsText (docid, subject) \
VALUES (?1, ?2)"); VALUES (?1, ?2)");
this.__defineGetter__("_insertConversationTextStatement", this.__defineGetter__("_insertConversationTextStatement",
function() statement); () => statement);
return this._insertConversationTextStatement; return this._insertConversationTextStatement;
}, },
@ -2348,7 +2348,7 @@ var GlodaDatastore = {
let statement = this._createAsyncStatement( let statement = this._createAsyncStatement(
"DELETE FROM conversations WHERE id = ?1"); "DELETE FROM conversations WHERE id = ?1");
this.__defineGetter__("_deleteConversationByIDStatement", this.__defineGetter__("_deleteConversationByIDStatement",
function() statement); () => statement);
return this._deleteConversationByIDStatement; return this._deleteConversationByIDStatement;
}, },
@ -2406,7 +2406,7 @@ var GlodaDatastore = {
"INSERT INTO messages (id, folderID, messageKey, conversationID, date, \ "INSERT INTO messages (id, folderID, messageKey, conversationID, date, \
headerMessageID, jsonAttributes, notability) \ headerMessageID, jsonAttributes, notability) \
VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8)"); VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8)");
this.__defineGetter__("_insertMessageStatement", function() statement); this.__defineGetter__("_insertMessageStatement", () => statement);
return this._insertMessageStatement; return this._insertMessageStatement;
}, },
@ -2415,7 +2415,7 @@ var GlodaDatastore = {
"INSERT INTO messagesText (docid, subject, body, attachmentNames, \ "INSERT INTO messagesText (docid, subject, body, attachmentNames, \
author, recipients) \ author, recipients) \
VALUES (?1, ?2, ?3, ?4, ?5, ?6)"); VALUES (?1, ?2, ?3, ?4, ?5, ?6)");
this.__defineGetter__("_insertMessageTextStatement", function() statement); this.__defineGetter__("_insertMessageTextStatement", () => statement);
return this._insertMessageTextStatement; return this._insertMessageTextStatement;
}, },
@ -2543,7 +2543,7 @@ var GlodaDatastore = {
notability = ?7, \ notability = ?7, \
deleted = ?8 \ deleted = ?8 \
WHERE id = ?9"); WHERE id = ?9");
this.__defineGetter__("_updateMessageStatement", function() statement); this.__defineGetter__("_updateMessageStatement", () => statement);
return this._updateMessageStatement; return this._updateMessageStatement;
}, },
@ -2553,7 +2553,7 @@ var GlodaDatastore = {
attachmentNames = ?2 \ attachmentNames = ?2 \
WHERE docid = ?3"); WHERE docid = ?3");
this.__defineGetter__("_updateMessageTextStatement", function() statement); this.__defineGetter__("_updateMessageTextStatement", () => statement);
return this._updateMessageTextStatement; return this._updateMessageTextStatement;
}, },
@ -2648,7 +2648,7 @@ var GlodaDatastore = {
let statement = this._createAsyncStatement( let statement = this._createAsyncStatement(
"UPDATE messages SET folderID = ?1, messageKey = ?2 WHERE id = ?3"); "UPDATE messages SET folderID = ?1, messageKey = ?2 WHERE id = ?3");
this.__defineGetter__("_updateMessageLocationStatement", this.__defineGetter__("_updateMessageLocationStatement",
function() statement); () => statement);
return this._updateMessageLocationStatement; return this._updateMessageLocationStatement;
}, },
@ -2701,7 +2701,7 @@ var GlodaDatastore = {
let statement = this._createAsyncStatement( let statement = this._createAsyncStatement(
"UPDATE messages SET messageKey = ?1 WHERE id = ?2"); "UPDATE messages SET messageKey = ?1 WHERE id = ?2");
this.__defineGetter__("_updateMessageKeyStatement", this.__defineGetter__("_updateMessageKeyStatement",
function() statement); () => statement);
return this._updateMessageKeyStatement; return this._updateMessageKeyStatement;
}, },
@ -2822,7 +2822,7 @@ var GlodaDatastore = {
"UPDATE messages SET folderID = NULL, messageKey = NULL, \ "UPDATE messages SET folderID = NULL, messageKey = NULL, \
deleted = 1 WHERE folderID = ?1"); deleted = 1 WHERE folderID = ?1");
this.__defineGetter__("_updateMessagesMarkDeletedByFolderID", this.__defineGetter__("_updateMessagesMarkDeletedByFolderID",
function() statement); () => statement);
return this._updateMessagesMarkDeletedByFolderID; return this._updateMessagesMarkDeletedByFolderID;
}, },
@ -2846,7 +2846,7 @@ var GlodaDatastore = {
// in-memory messages in that folder. // in-memory messages in that folder.
GlodaCollectionManager.itemsDeletedByAttribute( GlodaCollectionManager.itemsDeletedByAttribute(
GlodaMessage.prototype.NOUN_ID, GlodaMessage.prototype.NOUN_ID,
function(aMsg) aMsg._folderID == aFolderID); aMsg => aMsg._folderID == aFolderID);
}, },
/** /**
@ -2874,7 +2874,7 @@ var GlodaDatastore = {
let statement = this._createAsyncStatement( let statement = this._createAsyncStatement(
"SELECT COUNT(*) FROM messages WHERE deleted = 1"); "SELECT COUNT(*) FROM messages WHERE deleted = 1");
this.__defineGetter__("_countDeletedMessagesStatement", this.__defineGetter__("_countDeletedMessagesStatement",
function() statement); () => statement);
return this._countDeletedMessagesStatement; return this._countDeletedMessagesStatement;
}, },
@ -2890,7 +2890,7 @@ var GlodaDatastore = {
let statement = this._createAsyncStatement( let statement = this._createAsyncStatement(
"DELETE FROM messages WHERE id = ?1"); "DELETE FROM messages WHERE id = ?1");
this.__defineGetter__("_deleteMessageByIDStatement", this.__defineGetter__("_deleteMessageByIDStatement",
function() statement); () => statement);
return this._deleteMessageByIDStatement; return this._deleteMessageByIDStatement;
}, },
@ -2898,7 +2898,7 @@ var GlodaDatastore = {
let statement = this._createAsyncStatement( let statement = this._createAsyncStatement(
"DELETE FROM messagesText WHERE docid = ?1"); "DELETE FROM messagesText WHERE docid = ?1");
this.__defineGetter__("_deleteMessageTextByIDStatement", this.__defineGetter__("_deleteMessageTextByIDStatement",
function() statement); () => statement);
return this._deleteMessageTextByIDStatement; return this._deleteMessageTextByIDStatement;
}, },
@ -2927,7 +2927,7 @@ var GlodaDatastore = {
WHERE folderID = ?1 AND \ WHERE folderID = ?1 AND \
messageKey >= ?2 AND +deleted = 0 ORDER BY messageKey LIMIT ?3"); messageKey >= ?2 AND +deleted = 0 ORDER BY messageKey LIMIT ?3");
this.__defineGetter__("_folderCompactionStatement", this.__defineGetter__("_folderCompactionStatement",
function() statement); () => statement);
return this._folderCompactionStatement; return this._folderCompactionStatement;
}, },
@ -2948,7 +2948,7 @@ var GlodaDatastore = {
value) \ value) \
VALUES (?1, ?2, ?3, ?4)"); VALUES (?1, ?2, ?3, ?4)");
this.__defineGetter__("_insertMessageAttributeStatement", this.__defineGetter__("_insertMessageAttributeStatement",
function() statement); () => statement);
return this._insertMessageAttributeStatement; return this._insertMessageAttributeStatement;
}, },
@ -2957,7 +2957,7 @@ var GlodaDatastore = {
"DELETE FROM messageAttributes WHERE attributeID = ?1 AND value = ?2 \ "DELETE FROM messageAttributes WHERE attributeID = ?1 AND value = ?2 \
AND conversationID = ?3 AND messageID = ?4"); AND conversationID = ?3 AND messageID = ?4");
this.__defineGetter__("_deleteMessageAttributeStatement", this.__defineGetter__("_deleteMessageAttributeStatement",
function() statement); () => statement);
return this._deleteMessageAttributeStatement; return this._deleteMessageAttributeStatement;
}, },
@ -3034,7 +3034,7 @@ var GlodaDatastore = {
let statement = this._createAsyncStatement( let statement = this._createAsyncStatement(
"DELETE FROM messageAttributes WHERE messageID = ?1"); "DELETE FROM messageAttributes WHERE messageID = ?1");
this.__defineGetter__("_deleteMessageAttributesByMessageIDStatement", this.__defineGetter__("_deleteMessageAttributesByMessageIDStatement",
function() statement); () => statement);
return this._deleteMessageAttributesByMessageIDStatement; return this._deleteMessageAttributesByMessageIDStatement;
}, },
@ -3146,7 +3146,7 @@ var GlodaDatastore = {
*/ */
get _escapeLikeStatement() { get _escapeLikeStatement() {
let statement = this._createAsyncStatement("SELECT 0"); let statement = this._createAsyncStatement("SELECT 0");
this.__defineGetter__("_escapeLikeStatement", function() statement); this.__defineGetter__("_escapeLikeStatement", () => statement);
return this._escapeLikeStatement; return this._escapeLikeStatement;
}, },
@ -3772,7 +3772,7 @@ var GlodaDatastore = {
"INSERT INTO contacts (id, directoryUUID, contactUUID, name, popularity,\ "INSERT INTO contacts (id, directoryUUID, contactUUID, name, popularity,\
frecency, jsonAttributes) \ frecency, jsonAttributes) \
VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7)"); VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7)");
this.__defineGetter__("_insertContactStatement", function() statement); this.__defineGetter__("_insertContactStatement", () => statement);
return this._insertContactStatement; return this._insertContactStatement;
}, },
@ -3818,7 +3818,7 @@ var GlodaDatastore = {
frecency = ?5, \ frecency = ?5, \
jsonAttributes = ?6 \ jsonAttributes = ?6 \
WHERE id = ?7"); WHERE id = ?7");
this.__defineGetter__("_updateContactStatement", function() statement); this.__defineGetter__("_updateContactStatement", () => statement);
return this._updateContactStatement; return this._updateContactStatement;
}, },
@ -3862,7 +3862,7 @@ var GlodaDatastore = {
let statement = this._createSyncStatement( let statement = this._createSyncStatement(
"SELECT * FROM contacts WHERE id = ?1"); "SELECT * FROM contacts WHERE id = ?1");
this.__defineGetter__("_selectContactByIDStatement", this.__defineGetter__("_selectContactByIDStatement",
function() statement); () => statement);
return this._selectContactByIDStatement; return this._selectContactByIDStatement;
}, },
@ -3905,7 +3905,7 @@ var GlodaDatastore = {
let statement = this._createAsyncStatement( let statement = this._createAsyncStatement(
"INSERT INTO identities (id, contactID, kind, value, description, relay) \ "INSERT INTO identities (id, contactID, kind, value, description, relay) \
VALUES (?1, ?2, ?3, ?4, ?5, ?6)"); VALUES (?1, ?2, ?3, ?4, ?5, ?6)");
this.__defineGetter__("_insertIdentityStatement", function() statement); this.__defineGetter__("_insertIdentityStatement", () => statement);
return this._insertIdentityStatement; return this._insertIdentityStatement;
}, },
@ -3940,7 +3940,7 @@ var GlodaDatastore = {
let statement = this._createSyncStatement( let statement = this._createSyncStatement(
"SELECT * FROM identities WHERE kind = ?1 AND value = ?2"); "SELECT * FROM identities WHERE kind = ?1 AND value = ?2");
this.__defineGetter__("_selectIdentityByKindValueStatement", this.__defineGetter__("_selectIdentityByKindValueStatement",
function() statement); () => statement);
return this._selectIdentityByKindValueStatement; return this._selectIdentityByKindValueStatement;
}, },

Просмотреть файл

@ -521,7 +521,7 @@ var GlodaFundAttr = {
if (listIdentities.length) if (listIdentities.length)
aGlodaMessage.mailingLists = listIdentities; aGlodaMessage.mailingLists = listIdentities;
let findIsEncrypted = function (x) let findIsEncrypted = x =>
x.isEncrypted || (x.parts ? x.parts.some(findIsEncrypted) : false); x.isEncrypted || (x.parts ? x.parts.some(findIsEncrypted) : false);
// -- Encryption // -- Encryption

Просмотреть файл

@ -288,7 +288,7 @@ Logger.prototype = {
}, },
_parent: null, _parent: null,
get parent() this._parent, get parent() { return this._parent; },
set parent(parent) { set parent(parent) {
if (this._parent == parent) { if (this._parent == parent) {
return; return;

Просмотреть файл

@ -205,7 +205,7 @@ function MsgHdrToMimeMessage(aMsgHdr, aCallbackThis, aCallback,
if (aOptions && aOptions.examineEncryptedParts) if (aOptions && aOptions.examineEncryptedParts)
return aCallback; return aCallback;
else else
return (function (aMsgHdr, aMimeMsg) return ((aMsgHdr, aMimeMsg) =>
aCallback.call(aCallbackThis, aMsgHdr, stripEncryptedParts(aMimeMsg)) aCallback.call(aCallbackThis, aMsgHdr, stripEncryptedParts(aMimeMsg))
); );
}; };
@ -385,7 +385,7 @@ MimeMessage.prototype = {
else else
// Why is there no flatten method for arrays? // Why is there no flatten method for arrays?
return [child.allUserAttachments for each ([, child] in Iterator(this.parts))] return [child.allUserAttachments for each ([, child] in Iterator(this.parts))]
.reduce(function (a, b) a.concat(b), []); .reduce((a, b) => a.concat(b), []);
}, },
/** /**
@ -393,7 +393,7 @@ MimeMessage.prototype = {
*/ */
get size () { get size () {
return [child.size for each ([, child] in Iterator(this.parts))] return [child.size for each ([, child] in Iterator(this.parts))]
.reduce(function (a, b) a + Math.max(b, 0), 0); .reduce((a, b) => a + Math.max(b, 0), 0);
}, },
/** /**
@ -491,11 +491,11 @@ MimeContainer.prototype = {
}, },
get allUserAttachments () { get allUserAttachments () {
return [child.allUserAttachments for each ([, child] in Iterator(this.parts))] return [child.allUserAttachments for each ([, child] in Iterator(this.parts))]
.reduce(function (a, b) a.concat(b), []); .reduce((a, b) => a.concat(b), []);
}, },
get size () { get size () {
return [child.size for each ([, child] in Iterator(this.parts))] return [child.size for each ([, child] in Iterator(this.parts))]
.reduce(function (a, b) a + Math.max(b, 0), 0); .reduce((a, b) => a + Math.max(b, 0), 0);
}, },
set size (whatever) { set size (whatever) {
// nop // nop
@ -631,15 +631,15 @@ MimeUnknown.prototype = {
__proto__: HeaderHandlerBase, __proto__: HeaderHandlerBase,
get allAttachments() { get allAttachments() {
return [child.allAttachments for each ([, child] in Iterator(this.parts))] return [child.allAttachments for each ([, child] in Iterator(this.parts))]
.reduce(function (a, b) a.concat(b), []); .reduce((a, b) => a.concat(b), []);
}, },
get allUserAttachments() { get allUserAttachments() {
return [child.allUserAttachments for each ([, child] in Iterator(this.parts))] return [child.allUserAttachments for each ([, child] in Iterator(this.parts))]
.reduce(function (a, b) a.concat(b), []); .reduce((a, b) => a.concat(b), []);
}, },
get size() { get size() {
return this._size + [child.size for each ([, child] in Iterator(this.parts))] return this._size + [child.size for each ([, child] in Iterator(this.parts))]
.reduce(function (a, b) a + Math.max(b, 0), 0); .reduce((a, b) => a + Math.max(b, 0), 0);
}, },
set size(aSize) { set size(aSize) {
this._size = aSize; this._size = aSize;

Просмотреть файл

@ -123,7 +123,7 @@ function test_indexing_sweep() {
yield wait_for_message_injection(); yield wait_for_message_injection();
// Make sure that event-driven job gets nuked out of existence // Make sure that event-driven job gets nuked out of existence
GlodaIndexer.purgeJobsUsingFilter(function() true); GlodaIndexer.purgeJobsUsingFilter(() => true);
// turn on event-driven indexing again; this will trigger a sweep. // turn on event-driven indexing again; this will trigger a sweep.
configure_gloda_indexing({event: true}); configure_gloda_indexing({event: true});
@ -140,7 +140,7 @@ function test_indexing_sweep() {
setB2.setRead(true); setB2.setRead(true);
// indexing on, killing all outstanding jobs, trigger sweep // indexing on, killing all outstanding jobs, trigger sweep
GlodaIndexer.purgeJobsUsingFilter(function() true); GlodaIndexer.purgeJobsUsingFilter(() => true);
configure_gloda_indexing({event: true}); configure_gloda_indexing({event: true});
GlodaMsgIndexer.indexingSweepNeeded = true; GlodaMsgIndexer.indexingSweepNeeded = true;
@ -158,7 +158,7 @@ function test_indexing_sweep() {
setB1.setRead(true); setB1.setRead(true);
// indexing on, killing all outstanding jobs, trigger sweep // indexing on, killing all outstanding jobs, trigger sweep
GlodaIndexer.purgeJobsUsingFilter(function() true); GlodaIndexer.purgeJobsUsingFilter(() => true);
configure_gloda_indexing({event: true}); configure_gloda_indexing({event: true});
GlodaMsgIndexer.indexingSweepNeeded = true; GlodaMsgIndexer.indexingSweepNeeded = true;

Просмотреть файл

@ -134,7 +134,7 @@ function test_sweep_performs_compaction() {
yield false; yield false;
// Erase the compaction job. // Erase the compaction job.
GlodaIndexer.purgeJobsUsingFilter(function() true); GlodaIndexer.purgeJobsUsingFilter(() => true);
// Make sure the folder is marked compacted... // Make sure the folder is marked compacted...
let glodaFolder = Gloda.getFolderForFolder(msgFolder); let glodaFolder = Gloda.getFolderForFolder(msgFolder);
@ -178,7 +178,7 @@ function test_moves_and_deletions_on_compacted_folder_edge_case() {
yield false; yield false;
// Erase the compaction job. // Erase the compaction job.
GlodaIndexer.purgeJobsUsingFilter(function() true); GlodaIndexer.purgeJobsUsingFilter(() => true);
// - Delete // - Delete
// Because of the compaction, the PendingCommitTracker forgot that the message // Because of the compaction, the PendingCommitTracker forgot that the message
@ -192,7 +192,7 @@ function test_moves_and_deletions_on_compacted_folder_edge_case() {
// Kill the event-based indexing job of the target; we want the indexing sweep // Kill the event-based indexing job of the target; we want the indexing sweep
// to see it as a move. // to see it as a move.
mark_action("actual", "killing all indexing jobs", []); mark_action("actual", "killing all indexing jobs", []);
GlodaIndexer.purgeJobsUsingFilter(function() true); GlodaIndexer.purgeJobsUsingFilter(() => true);
// - Indexing pass // - Indexing pass
// Reenable indexing so we can do a sweep. // Reenable indexing so we can do a sweep.