Skip to content

Commit

Permalink
Fix build error at Node.js v12
Browse files Browse the repository at this point in the history
  • Loading branch information
daCapricorn committed Jul 15, 2019
1 parent 6e62787 commit 4824f42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/bufferutil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BufferUtil : public ObjectWrap
{
public:

static void Initialize(v8::Handle<v8::Object> target)
static void Initialize(v8::Local<v8::Object> target)
{
Nan::HandleScope scope;
Local<FunctionTemplate> t = Nan::New<FunctionTemplate>(New);
Expand Down Expand Up @@ -112,7 +112,7 @@ class BufferUtil : public ObjectWrap
#if !NODE_VERSION_AT_LEAST(0,10,0)
extern "C"
#endif
void init (Handle<Object> target)
void init (Local<Object> target)
{
Nan::HandleScope scope;
BufferUtil::Initialize(target);
Expand Down
4 changes: 2 additions & 2 deletions src/validation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Validation : public ObjectWrap
{
public:

static void Initialize(v8::Handle<v8::Object> target)
static void Initialize(v8::Local<v8::Object> target)
{
Nan::HandleScope scope;
Local<FunctionTemplate> t = Nan::New<FunctionTemplate>(New);
Expand Down Expand Up @@ -139,7 +139,7 @@ class Validation : public ObjectWrap
#if !NODE_VERSION_AT_LEAST(0,10,0)
extern "C"
#endif
void init (Handle<Object> target)
void init (Local<Object> target)
{
Nan::HandleScope scope;
Validation::Initialize(target);
Expand Down

0 comments on commit 4824f42

Please sign in to comment.