From 9f038891efbe1ba2c51a3974764ca6e7c90c031a Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 23 Jul 2025 16:52:30 -0400 Subject: [PATCH] Set name for Zotero.DBConnection.TimeoutError Fixes failing timeout test in dbTest.js. --- chrome/content/zotero/xpcom/db.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js index b76be4a297..b5ad85e3ed 100644 --- a/chrome/content/zotero/xpcom/db.js +++ b/chrome/content/zotero/xpcom/db.js @@ -1496,4 +1496,9 @@ Zotero.DBConnection.prototype._debug = function (str, level) { Zotero.debug(prefix + str, level); } -Zotero.DBConnection.TimeoutError = class extends Error {}; +Zotero.DBConnection.TimeoutError = class TimeoutError extends Error { + constructor(message) { + super(message); + this.name = 'TimeoutError'; + } +};