diff --git a/lib/index.cpp b/lib/index.cpp index 99c139d..9f2dcf1 100644 --- a/lib/index.cpp +++ b/lib/index.cpp @@ -21,4 +21,4 @@ void init(Local exports) { Nan::GetFunction(Nan::New(insertWord)).ToLocalChecked()); } -NAN_MODULE_WORKER_ENABLED(nodejieba, init) +NODE_MODULE(nodejieba, init)