Skip to content

Commit

Permalink
workaround for v10
Browse files Browse the repository at this point in the history
  • Loading branch information
realdennis committed Jun 13, 2018
1 parent 49d7b5f commit 71ecb06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcap_session.cc
Expand Up @@ -43,7 +43,7 @@ void PcapSession::New(const Nan::FunctionCallbackInfo<Value>& info) {
} else {
// Invoked as plain function `MyObject(...)`, turn into construct call.
Local<Function> cons = Nan::New<Function>(constructor);
info.GetReturnValue().Set(cons->NewInstance());
info.GetReturnValue().Set(Nan::NewInstance(cons).ToLocalChecked());
}
}

Expand Down

0 comments on commit 71ecb06

Please sign in to comment.