aboutsummaryrefslogtreecommitdiff
path: root/dev/translator-vm.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-07-31 18:08:51 -0400
committerGitHub <noreply@github.com>2021-07-31 18:08:51 -0400
commit01c5c5c04bd9234c64d6f57ee0ea65b0f478a1b7 (patch)
treef262b7042bd56fc9b72efb7b42d97341efd50df9 /dev/translator-vm.js
parent1d6e437fb284a591fc1b7f4aec87bbc7cde5367f (diff)
Dictionary importer refactoring (#1867)
* Remove map of schemas * Don't reuse dictionary importer instances * Refactor * Update how progress callback is used
Diffstat (limited to 'dev/translator-vm.js')
-rw-r--r--dev/translator-vm.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/dev/translator-vm.js b/dev/translator-vm.js
index d616afc5..c826abec 100644
--- a/dev/translator-vm.js
+++ b/dev/translator-vm.js
@@ -76,15 +76,14 @@ class TranslatorVM extends DatabaseVM {
// Setup database
const dictionaryImporterMediaLoader = new DatabaseVMDictionaryImporterMediaLoader();
- const dictionaryImporter = new DictionaryImporter(dictionaryImporterMediaLoader);
+ const dictionaryImporter = new DictionaryImporter(dictionaryImporterMediaLoader, null);
const dictionaryDatabase = new DictionaryDatabase();
await dictionaryDatabase.prepare();
const {errors} = await dictionaryImporter.importDictionary(
dictionaryDatabase,
testDictionaryContent,
- {prefixWildcardsSupported: true},
- () => {}
+ {prefixWildcardsSupported: true}
);
assert.deepStrictEqual(errors.length, 0);