aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-24 02:34:16 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-24 02:34:16 +0200
commit89c6ef54b0a44685cde530dd4a94405a578ce132 (patch)
tree7d2b5fbbefb6e5b2339aafea46ea105e491f25f4 /ext
parent43fad608fb5833f95c215dd7596bac5a821dbe60 (diff)
always return a promise from Mecab.invoke
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/mecab.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/mecab.js b/ext/bg/js/mecab.js
index 4983f656..246f8bba 100644
--- a/ext/bg/js/mecab.js
+++ b/ext/bg/js/mecab.js
@@ -70,7 +70,7 @@ class Mecab {
invoke(action, params) {
if (this.port === null) {
- return {};
+ return Promise.resolve({});
}
return new Promise((resolve, reject) => {
const sequence = this.sequence++;