Skip to content

Commit

Permalink
Use NAN_MODULE_WORKER_INIT instead of NODE_MODULE
Browse files Browse the repository at this point in the history
  • Loading branch information
sebi2k1 committed Feb 17, 2024
1 parent 182d2a1 commit c042d62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions native/can.cc
Original file line number Diff line number Diff line change
Expand Up @@ -759,3 +759,5 @@ class RawChannel : public Nan::ObjectWrap

//-----------------------------------------------------------------------------------------
Nan::Persistent<v8::Function> RawChannel::constructor;

NAN_MODULE_WORKER_ENABLED(can, RawChannel::Init)

0 comments on commit c042d62

Please sign in to comment.