diff --git a/package.json b/package.json index dbf457a8..a0196e36 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "dependencies": { "debug": "^2.2.0", - "nan": "^2.11.0", + "nan": "^2.14.0", "gulp": "^4.0.2", "typedarray-to-buffer": "^3.1.5", "yaeti": "^0.0.6" diff --git a/src/bufferutil.cc b/src/bufferutil.cc index d2f8d2d6..a53c246d 100644 --- a/src/bufferutil.cc +++ b/src/bufferutil.cc @@ -23,7 +23,7 @@ class BufferUtil : public ObjectWrap { public: - static void Initialize(v8::Handle target) + static void Initialize(v8::Local target) { Nan::HandleScope scope; Local t = Nan::New(New); @@ -112,7 +112,7 @@ class BufferUtil : public ObjectWrap #if !NODE_VERSION_AT_LEAST(0,10,0) extern "C" #endif -void init (Handle target) +void init (Local target) { Nan::HandleScope scope; BufferUtil::Initialize(target); diff --git a/src/validation.cc b/src/validation.cc index 8e2347e5..3db4f65f 100644 --- a/src/validation.cc +++ b/src/validation.cc @@ -105,7 +105,7 @@ class Validation : public ObjectWrap { public: - static void Initialize(v8::Handle target) + static void Initialize(v8::Local target) { Nan::HandleScope scope; Local t = Nan::New(New); @@ -139,7 +139,7 @@ class Validation : public ObjectWrap #if !NODE_VERSION_AT_LEAST(0,10,0) extern "C" #endif -void init (Handle target) +void init (Local target) { Nan::HandleScope scope; Validation::Initialize(target);