From 9bce6a61ac5c2bbe83befbe73a2acff43dbec044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=BA=B7?= Date: Tue, 15 Sep 2020 11:03:11 +0800 Subject: [PATCH] feat: support thread_worker --- lib/index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.cpp b/lib/index.cpp index 9f2dcf1..99c139d 100644 --- a/lib/index.cpp +++ b/lib/index.cpp @@ -21,4 +21,4 @@ void init(Local exports) { Nan::GetFunction(Nan::New(insertWord)).ToLocalChecked()); } -NODE_MODULE(nodejieba, init) +NAN_MODULE_WORKER_ENABLED(nodejieba, init)