Skip to content

Commit 4d6268b

Browse files
committed
Revert "fix electron build error"
This reverts commit 21211b2.
1 parent 21211b2 commit 4d6268b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/unix/API.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ using namespace v8;
66

77
#define CALLBACK(name) void name(const FunctionCallbackInfo<Value>& args)
88
#define ISOLATE v8::Isolate* isolate = v8::Isolate::GetCurrent()
9-
#define THROW_EXCEPTION(msg) isolate->ThrowException(v8::Exception::TypeError(String::NewFromUtf8(isolate, msg)/**/.FromMaybe(v8::Local<v8::String>())/**/))
10-
#define UTF8_STRING(str) String::NewFromUtf8(isolate, str)/**/.FromMaybe(v8::Local<v8::String>())/**/
9+
#define THROW_EXCEPTION(msg) isolate->ThrowException(v8::Exception::TypeError(String::NewFromUtf8(isolate, msg)/*.FromMaybe(v8::Local<v8::String>())*/))
10+
#define UTF8_STRING(str) String::NewFromUtf8(isolate, str)/*.FromMaybe(v8::Local<v8::String>())*/
1111
#define S_STR(str) isolate, str->ToString(isolate->GetCurrentContext()).FromMaybe(v8::Local<v8::String>())
1212

1313
//Method declarations
@@ -55,4 +55,4 @@ void init(Local<Object> exports) {
5555
NODE_SET_METHOD(exports, "print", print);
5656
}
5757

58-
NODE_MODULE(NODE_GYP_MODULE_NAME, init)
58+
NODE_MODULE(NODE_GYP_MODULE_NAME, init)

0 commit comments

Comments
 (0)