Skip to content

Commit f78487c

Browse files
authored
Merge pull request theturtle32#361 from daCapricorn/feature/support-node-12
Fix build error at Node.js v12
2 parents 114661a + 4824f42 commit f78487c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"dependencies": {
3030
"debug": "^2.2.0",
31-
"nan": "^2.11.0",
31+
"nan": "^2.14.0",
3232
"gulp": "^4.0.2",
3333
"typedarray-to-buffer": "^3.1.5",
3434
"yaeti": "^0.0.6"

src/bufferutil.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class BufferUtil : public ObjectWrap
2323
{
2424
public:
2525

26-
static void Initialize(v8::Handle<v8::Object> target)
26+
static void Initialize(v8::Local<v8::Object> target)
2727
{
2828
Nan::HandleScope scope;
2929
Local<FunctionTemplate> t = Nan::New<FunctionTemplate>(New);
@@ -112,7 +112,7 @@ class BufferUtil : public ObjectWrap
112112
#if !NODE_VERSION_AT_LEAST(0,10,0)
113113
extern "C"
114114
#endif
115-
void init (Handle<Object> target)
115+
void init (Local<Object> target)
116116
{
117117
Nan::HandleScope scope;
118118
BufferUtil::Initialize(target);

src/validation.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class Validation : public ObjectWrap
105105
{
106106
public:
107107

108-
static void Initialize(v8::Handle<v8::Object> target)
108+
static void Initialize(v8::Local<v8::Object> target)
109109
{
110110
Nan::HandleScope scope;
111111
Local<FunctionTemplate> t = Nan::New<FunctionTemplate>(New);
@@ -139,7 +139,7 @@ class Validation : public ObjectWrap
139139
#if !NODE_VERSION_AT_LEAST(0,10,0)
140140
extern "C"
141141
#endif
142-
void init (Handle<Object> target)
142+
void init (Local<Object> target)
143143
{
144144
Nan::HandleScope scope;
145145
Validation::Initialize(target);

0 commit comments

Comments
 (0)