Skip to content

Commit b4ca7c3

Browse files
committed
fix node module init
1 parent 4396d57 commit b4ca7c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crash-handler-module/module.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
using namespace v8;
44

5-
NAN_MODULE_INIT(crash_init)
5+
void init(Local<Object> exports)
66
{
77
/// Functions ///
88
// NODE_SET_METHOD(exports, "startHook", StartHotkeyThreadJS);
9-
};
9+
}
1010

11-
NAN_MODULE_WORKER_ENABLED(crash_handler, crash_init)
11+
NODE_MODULE(crash_handler, init);

0 commit comments

Comments
 (0)