Skip to content

Commit f114464

Browse files
author
Timo Aho
committed
Use Nan::Utf8String
Note: I have no idea what I'm doing!
1 parent 446d40f commit f114464

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/robotjs.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ NAN_METHOD(mouseToggle)
133133
{
134134
char *d;
135135

136-
v8::String::Utf8Value bstr(info[0]->ToString());
136+
Nan::Utf8String bstr(info[1]);
137137
d = *bstr;
138138

139139
if (strcmp(d, "down") == 0)
@@ -154,7 +154,7 @@ NAN_METHOD(mouseToggle)
154154
{
155155
char *b;
156156

157-
v8::String::Utf8Value bstr(info[1]->ToString());
157+
Nan::Utf8String bstr(info[1]);
158158
b = *bstr;
159159

160160
if (strcmp(b, "left") == 0)

0 commit comments

Comments
 (0)