Skip to content

Commit 15f7535

Browse files
authored
Merge pull request #115 from bmocm/node10
Node.js v10 support.
2 parents 2558b50 + e237d0c commit 15f7535

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

LDAPCookie.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ v8::Local<v8::Object> LDAPCookie::NewInstance() {
3535
const unsigned argc = 1;
3636
v8::Local<v8::Value> argv[argc] = { Nan::Undefined() };
3737
v8::Local<v8::Function> cons = Nan::New<v8::Function>(constructor);
38-
v8::Local<v8::Object> instance = cons->NewInstance(argc, argv);
38+
v8::Local<v8::Object> instance = Nan::NewInstance(cons, argc, argv)
39+
.ToLocalChecked();
3940

4041
return scope.Escape(instance);
4142
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"dependencies": {
2222
"bindings": "^1.2.1",
2323
"lodash": "^3.10.1",
24-
"nan": "^2.0.5",
24+
"nan": "^2.12.1",
2525
"node-gyp": ""
2626
},
2727
"engines": {

0 commit comments

Comments
 (0)