Skip to content

Commit

Permalink
Fixed compile error (issue foliojs#45) - upgraded nan to >= 2.14.0 an…
Browse files Browse the repository at this point in the history
…d fixed a call in FontDescriptor.h
  • Loading branch information
q-lukasz committed Jan 28, 2020
1 parent 33b102e commit 523d3b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "build/Release/fontmanager",
"types": "index.d.ts",
"dependencies": {
"nan": ">=2.10.0"
"nan": ">=2.14.0"
},
"devDependencies": {
"mocha": "*"
Expand Down
2 changes: 1 addition & 1 deletion src/FontDescriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ struct FontDescriptor {
MaybeLocal<Value> value = Nan::Get(obj, Nan::New<String>(name).ToLocalChecked());

if (!value.IsEmpty() && value.ToLocalChecked()->IsBoolean()) {
return value.ToLocalChecked()->BooleanValue(Nan::GetCurrentContext()).FromJust();
return value.ToLocalChecked()->BooleanValue((Nan::GetCurrentContext())->GetIsolate());
}

return false;
Expand Down

0 comments on commit 523d3b3

Please sign in to comment.