Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
⬆️ BooleanValue also needs changing for Node 12
  • Loading branch information
tiggerite committed Jul 10, 2019
commit 8e723ef46635b912c5d47a3b389f075a58547fe4
2 changes: 1 addition & 1 deletion generate/templates/manual/src/str_array_converter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using namespace v8;
using namespace node;

git_strarray *StrArrayConverter::Convert(Local<v8::Value> val) {
if (!val->BooleanValue()) {
if (!Nan::To<bool>(val).FromJust()) {
return NULL;
}
else if (val->IsArray()) {
Expand Down
2 changes: 1 addition & 1 deletion generate/templates/partials/field_accessors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
Nan::MaybeLocal<Value> maybeObjectWaitForResult = Nan::Get(object, Nan::New("waitForResult").ToLocalChecked());
if(!maybeObjectWaitForResult.IsEmpty()) {
Local<Value> objectWaitForResult = maybeObjectWaitForResult.ToLocalChecked();
waitForResult = (bool)objectWaitForResult->BooleanValue();
waitForResult = Nan::To<bool>(objectWaitForResult).FromJust();
}
}
}
Expand Down