Skip to content

Commit

Permalink
Merge pull request #348 from giovannicalo/master
Browse files Browse the repository at this point in the history
Added support for Node 13
  • Loading branch information
lgeiger authored Nov 16, 2019
2 parents cbc9b7b + e2ff5e4 commit 2fab8a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_js:
- "8"
- "10"
- "11"
- "13"
sudo: required

matrix:
Expand Down
4 changes: 2 additions & 2 deletions binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1297,8 +1297,8 @@ namespace zmq {
}
}

Local<Object> buf = batch->Get(i).As<Object>();
Local<Number> flagsObj = batch->Get(i + 1).As<Number>();
Local<Object> buf = batch->Get(Nan::GetCurrentContext(), i).ToLocalChecked().As<Object>();
Local<Number> flagsObj = batch->Get(Nan::GetCurrentContext(), i + 1).ToLocalChecked().As<Number>();

int flags = Nan::To<int>(flagsObj).FromJust();

Expand Down

0 comments on commit 2fab8a9

Please sign in to comment.