Skip to content

Commit

Permalink
Merge branch 'master' into skip-bench-on-merge-group
Browse files Browse the repository at this point in the history
  • Loading branch information
djahandarie authored Dec 29, 2024
2 parents ee1594b + 5961c3b commit dfeda19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/js/dictionary/dictionary-database.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ export class DictionaryDatabase {
if (this._db.isOpen()) {
this._db.close();
}
if (this._worker !== null) {
this._worker.terminate();
this._worker = null;
}
let result = false;
try {
await Database.deleteDatabase(this._dbName);
Expand Down
1 change: 1 addition & 0 deletions test/utilities/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export function setupStubs() {
function Worker() {
return {
addEventListener: () => {},
terminate: () => {},
};
}
vi.stubGlobal('Worker', Worker);
Expand Down

0 comments on commit dfeda19

Please sign in to comment.