Skip to content

Commit ae9ea9b

Browse files
authored
Merge pull request #1 from trollkotze/patch-1
fix build for node version 10 (dependency upgrade -> "nan": "^2.10.0")
2 parents 603f006 + b18d91c commit ae9ea9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libxml.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ NAN_METHOD(Libxml::New) {
7070
const int argc = 1;
7171
Local<Value> argv[argc] = {info[0]};
7272
Local<Function> cons = Nan::New(constructor());
73-
info.GetReturnValue().Set(cons->NewInstance(argc, argv));
73+
info.GetReturnValue().Set(Nan::NewInstance(cons, argc, argv).ToLocalChecked());
7474
}
7575
}
7676

0 commit comments

Comments
 (0)