From d2faaf03c94644f8c2fa0355ad6cc15d8e728fba Mon Sep 17 00:00:00 2001 From: Jason Stallings Date: Mon, 12 Oct 2015 10:41:32 -0500 Subject: [PATCH] Use nan to define strings. --- src/robotjs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/robotjs.cc b/src/robotjs.cc index 86035471..5c6e67c4 100644 --- a/src/robotjs.cc +++ b/src/robotjs.cc @@ -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;