Skip to content

Commit

Permalink
Make node module context-aware to allow usage in worker threads
Browse files Browse the repository at this point in the history
  • Loading branch information
S4N0I committed Apr 27, 2022
1 parent 3e9ecb9 commit 1681bd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ void InitAll(v8::Local<v8::Object> exports) {
AnnoyIndexWrapper::Init(exports);
}

NODE_MODULE(addon, InitAll)
NODE_MODULE_INIT() {
InitAll(exports);
}

0 comments on commit 1681bd6

Please sign in to comment.