aboutsummaryrefslogtreecommitdiff
path: root/dev/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'dev/util.js')
-rw-r--r--dev/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/util.js b/dev/util.js
index c17cd29a..a5d1ead9 100644
--- a/dev/util.js
+++ b/dev/util.js
@@ -137,9 +137,9 @@ function createDictionaryArchive(dictionaryDirectory, dictionaryName) {
}
-async function testMain(func) {
+async function testMain(func, ...args) {
try {
- await func();
+ await func(...args);
} catch (e) {
console.log(e);
process.exit(-1);