Skip to content

Commit e069382

Browse files
committed
Quick Patch for Node 6.0.0
1 parent ec23613 commit e069382

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

Native/Addon/Keyboard.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ void KeyboardWrap::Initialize (Handle<Object> exports)
180180
NODE_SET_PROTOTYPE_METHOD (tpl, "_press", Press );
181181
NODE_SET_PROTOTYPE_METHOD (tpl, "_release", Release);
182182

183-
NODE_SET_METHOD (tpl, "compile", Compile );
184-
NODE_SET_METHOD (tpl, "getState", GetState);
183+
NODE_SET_METHOD ((Local<Template>) tpl, "compile", Compile );
184+
NODE_SET_METHOD ((Local<Template>) tpl, "getState", GetState);
185185

186186
// Assign function template to our class creator
187187
constructor.Reset (isolate, tpl->GetFunction());

Native/Addon/Mouse.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ void MouseWrap::Initialize (Handle<Object> exports)
188188
NODE_SET_PROTOTYPE_METHOD (tpl, "_scrollH", ScrollH);
189189
NODE_SET_PROTOTYPE_METHOD (tpl, "_scrollV", ScrollV);
190190

191-
NODE_SET_METHOD (tpl, "getPos", GetPos );
192-
NODE_SET_METHOD (tpl, "_setPos", SetPos );
193-
NODE_SET_METHOD (tpl, "getState", GetState);
191+
NODE_SET_METHOD ((Local<Template>) tpl, "getPos", GetPos );
192+
NODE_SET_METHOD ((Local<Template>) tpl, "_setPos", SetPos );
193+
NODE_SET_METHOD ((Local<Template>) tpl, "getState", GetState);
194194

195195
// Assign function template to our class creator
196196
constructor.Reset (isolate, tpl->GetFunction());

Native/Addon/Process.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,10 @@ void ProcessWrap::Initialize (Handle<Object> exports)
374374
NODE_SET_PROTOTYPE_METHOD (tpl, "getWindows", GetWindows);
375375
NODE_SET_PROTOTYPE_METHOD (tpl, "_equals", Equals );
376376

377-
NODE_SET_METHOD (tpl, "getList", GetList );
378-
NODE_SET_METHOD (tpl, "getCurrent", GetCurrent );
379-
NODE_SET_METHOD (tpl, "_isSys64Bit", IsSys64Bit );
380-
NODE_SET_METHOD (tpl, "_getSegments", GetSegments);
377+
NODE_SET_METHOD ((Local<Template>) tpl, "getList", GetList );
378+
NODE_SET_METHOD ((Local<Template>) tpl, "getCurrent", GetCurrent );
379+
NODE_SET_METHOD ((Local<Template>) tpl, "_isSys64Bit", IsSys64Bit );
380+
NODE_SET_METHOD ((Local<Template>) tpl, "_getSegments", GetSegments);
381381

382382
// Assign function template to our class creator
383383
constructor.Reset (isolate, tpl->GetFunction());

Native/Addon/Window.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,10 @@ void WindowWrap::Initialize (Handle<Object> exports)
435435
NODE_SET_PROTOTYPE_METHOD (tpl, "_mapToScreen", MapToScreen );
436436
NODE_SET_PROTOTYPE_METHOD (tpl, "_equals", Equals );
437437

438-
NODE_SET_METHOD (tpl, "getList", GetList );
439-
NODE_SET_METHOD (tpl, "getActive", GetActive );
440-
NODE_SET_METHOD (tpl, "_setActive", SetActive );
441-
NODE_SET_METHOD (tpl, "isAxEnabled", IsAxEnabled);
438+
NODE_SET_METHOD ((Local<Template>) tpl, "getList", GetList );
439+
NODE_SET_METHOD ((Local<Template>) tpl, "getActive", GetActive );
440+
NODE_SET_METHOD ((Local<Template>) tpl, "_setActive", SetActive );
441+
NODE_SET_METHOD ((Local<Template>) tpl, "isAxEnabled", IsAxEnabled);
442442

443443
// Assign function template to our class creator
444444
constructor.Reset (isolate, tpl->GetFunction());

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@
6767

6868
"engines":
6969
{
70-
"node" : "~0.12 || ^4 || ^5"
70+
"node" : ">= 0.12"
7171
}
7272
}

0 commit comments

Comments
 (0)