Skip to content

Commit

Permalink
Make the module context-aware
Browse files Browse the repository at this point in the history
  • Loading branch information
pokusew committed Sep 28, 2023
1 parent 5d64e4e commit 3cbfdc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ void init_all(v8::Local<v8::Object> target) {
CardReader::init(target);
}

NODE_MODULE(pcsclite, init_all)
// see https://nodejs.org/api/addons.html#context-aware-addons
// see https://github.com/nodejs/nan/blob/v2.18.0/nan.h#L165
NAN_MODULE_WORKER_ENABLED(pcsclite, init_all)

0 comments on commit 3cbfdc3

Please sign in to comment.