File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ using namespace v8;
6
6
7
7
#define CALLBACK (name ) void name (const FunctionCallbackInfo<Value>& args)
8
8
#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>())*/
11
11
#define S_STR (str ) isolate, str->ToString (isolate->GetCurrentContext ()).FromMaybe(v8::Local<v8::String>())
12
12
13
13
// Method declarations
@@ -55,4 +55,4 @@ void init(Local<Object> exports) {
55
55
NODE_SET_METHOD (exports, " print" , print);
56
56
}
57
57
58
- NODE_MODULE (NODE_GYP_MODULE_NAME, init)
58
+ NODE_MODULE (NODE_GYP_MODULE_NAME, init)
You can’t perform that action at this time.
0 commit comments