Skip to content

Commit

Permalink
Use nan to define strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Oct 12, 2015
1 parent 96d8547 commit d2faaf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,9 @@ NAN_METHOD(keyToggle)
bool down;
char *k;
char *f;
Nan::Utf8String kstr(info[0]);
Nan::Utf8String fstr(info[2]);

v8::String::Utf8Value kstr(info[0]->ToString());
v8::String::Utf8Value fstr(info[2]->ToString());
k = *kstr;
f = *fstr;

Expand Down

0 comments on commit d2faaf0

Please sign in to comment.