-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to Node 12 #16
Conversation
@@ -1,8 +1,11 @@ | |||
{ | |||
'targets': [ | |||
{ | |||
'include_dirs':[ | |||
'<(module_root_dir)/node_modules/nan', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to change binding.gyp to pull from the server node_modules directory if at all possible, but I don't think I can.
"colors": "~0.6.0-1", | ||
"bindings": "*" | ||
"nan": "^2.14.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bringing in nan to help with some of the string and integer types.
} | ||
|
||
void init(v8::Handle<v8::Object> target) { | ||
void init(v8::Local<v8::Object> target) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v8::Handle has been deprecated for a while, but it was finally removed in v8 used for node 12.
v8::Isolate* isolate = args.GetIsolate(); | ||
args[0]->ToString(Nan::GetCurrentContext()).FromMaybe(v8::Local<v8::String>())->WriteUtf8(isolate, (char*) &title); | ||
int32_t facility = args[1]->ToInt32(Nan::GetCurrentContext()).ToLocalChecked()->Value(); | ||
int32_t log_upto = args[2]->ToInt32(Nan::GetCurrentContext()).ToLocalChecked()->Value(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Helpful notes on migration from another repo bcoin-org/bcrypto#7
Whoops, looks like I was on the wrong repo. Feel free to use any of this if you want. |
Still a work in progress, but wanted to highlight some changes with this package.