diff --git a/.travis.yml b/.travis.yml index 0a5eae2f..364a18a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ node_js: - "8" - "10" - "11" +- "13" sudo: required matrix: diff --git a/binding.cc b/binding.cc index c5a63c0c..cfcbe5af 100644 --- a/binding.cc +++ b/binding.cc @@ -1297,8 +1297,8 @@ namespace zmq { } } - Local buf = batch->Get(i).As(); - Local flagsObj = batch->Get(i + 1).As(); + Local buf = batch->Get(Nan::GetCurrentContext(), i).ToLocalChecked().As(); + Local flagsObj = batch->Get(Nan::GetCurrentContext(), i + 1).ToLocalChecked().As(); int flags = Nan::To(flagsObj).FromJust();