aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg')
-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++;