File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -166,13 +166,13 @@ NAN_METHOD(Close) {
166
166
167
167
void Initialize (Local<Object> target) {
168
168
target->Set (Nan::New (" socket" ).ToLocalChecked (),
169
- Nan::New<FunctionTemplate>(Socket)-> GetFunction ());
169
+ Nan::GetFunction (Nan:: New<FunctionTemplate>(Socket)). ToLocalChecked ());
170
170
target->Set (Nan::New (" bind" ).ToLocalChecked (),
171
- Nan::New<FunctionTemplate>(Bind)-> GetFunction ());
171
+ Nan::GetFunction (Nan:: New<FunctionTemplate>(Bind)). ToLocalChecked ());
172
172
target->Set (Nan::New (" connect" ).ToLocalChecked (),
173
- Nan::New<FunctionTemplate>(Connect)-> GetFunction ());
173
+ Nan::GetFunction (Nan:: New<FunctionTemplate>(Connect)). ToLocalChecked ());
174
174
target->Set (Nan::New (" close" ).ToLocalChecked (),
175
- Nan::New<FunctionTemplate>(Close)-> GetFunction ());
175
+ Nan::GetFunction (Nan:: New<FunctionTemplate>(Close)). ToLocalChecked ());
176
176
}
177
177
178
178
You can’t perform that action at this time.
0 commit comments