Skip to content

Commit

Permalink
fix windows building issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya_pavkin committed Sep 5, 2020
1 parent 1925538 commit c880fd3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cpp/winnus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ using v8::Object;
using v8::Persistent;
using v8::String;
using v8::Value;
using v8::Handle;


#define RETURN_ERR(text) {isolate->ThrowException(Exception::Error(String::NewFromUtf8(isolate, text)));return;}
Expand Down Expand Up @@ -274,7 +273,7 @@ void WINNUS_Connect(const FunctionCallbackInfo<Value>& args) {
}

// Grab argument
v8::String::Utf8Value pathArg(args[0]->ToString());
v8::String::Utf8Value pathArg(isolate, args[0]->ToString(isolate));

GUID UUID_NUS, UUID_NUS_RX, UUID_NUS_TX;
CLSIDFromString(TEXT(L"{6e400001-b5a3-f393-e0a9-e50e24dcca9e}"), &UUID_NUS);
Expand Down Expand Up @@ -549,7 +548,7 @@ void WINNUS_Write(const FunctionCallbackInfo<Value>& args) {
return;
}

v8::String::Utf8Value dataArg(args[0]->ToString());
v8::String::Utf8Value dataArg(isolate, args[0]->ToString(isolate));

if (!hLEDevice)
RETURN_ERR("Bluetooth connection not open");
Expand Down

0 comments on commit c880fd3

Please sign in to comment.