[node] move to Nan 2.10.0

This commit is contained in:
Konstantin Käfer
2018-04-20 16:40:17 +03:00
parent d5aff7182d
commit 973aa963f9
5 changed files with 34 additions and 15 deletions

View File

@@ -52,7 +52,7 @@ type::Type parseType(v8::Local<v8::Object> type) {
v8::Local<v8::String> Nkey = Nan::New("N").ToLocalChecked();
if (Nan::Has(type, Nkey).FromMaybe(false)) {
N = Nan::Get(type, Nkey).ToLocalChecked()->ToInt32()->Value();
N = Nan::To<v8::Int32>(Nan::Get(type, Nkey).ToLocalChecked()).ToLocalChecked()->Value();
}
return type::Array(itemType, N);
}