Skip to content

Commit 01dae9b

Browse files
replace NODE_MODULE with NODE_MODULE_INIT macro (mendsley#20)
1 parent aa939f7 commit 01dae9b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Main.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,15 @@ namespace bsdpNode {
105105
Nan::ThrowError(error);
106106
}
107107

108-
void init(Local<Object> exports, Local<Object> module) {
108+
void init(Local<Object> exports) {
109109
NODE_SET_METHOD(exports, "diff", diff);
110110
NODE_SET_METHOD(exports, "diffSync", diffSync);
111111

112112
NODE_SET_METHOD(exports, "patch", patch);
113113
NODE_SET_METHOD(exports, "patchSync", patchSync);
114114
}
115115

116-
NODE_MODULE(bsdp, init)
116+
NODE_MODULE_INIT() {
117+
init(exports);
118+
}
117119
}

0 commit comments

Comments
 (0)