File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ void uvAsyncCb_dynamicProxyJsCall(uv_async_t *handle) {
106
106
Nan::SetPrototypeMethod (t, " getStaticFieldValue" , getStaticFieldValue);
107
107
Nan::SetPrototypeMethod (t, " setStaticFieldValue" , setStaticFieldValue);
108
108
Nan::SetPrototypeMethod (t, " instanceOf" , instanceOf);
109
+ Nan::SetPrototypeMethod (t, " stop" , stop);
109
110
110
111
Nan::Set (target, Nan::New<v8::String>(" Java" ).ToLocalChecked (), Nan::GetFunction (t).ToLocalChecked ());
111
112
@@ -1239,6 +1240,10 @@ NAN_METHOD(Java::instanceOf) {
1239
1240
info.GetReturnValue ().Set (Nan::New<v8::Boolean >(res));
1240
1241
}
1241
1242
1243
+ NAN_METHOD (Java::stop) {
1244
+ uv_close ((uv_handle_t *)&uvAsync_dynamicProxyJsCall, NULL );
1245
+ }
1246
+
1242
1247
template <typename T>
1243
1248
std::string to_string (T value) {
1244
1249
std::ostringstream os;
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ class Java : public Nan::ObjectWrap {
56
56
static NAN_METHOD (getStaticFieldValue);
57
57
static NAN_METHOD (setStaticFieldValue);
58
58
static NAN_METHOD (instanceOf);
59
+ static NAN_METHOD (stop);
59
60
static NAN_GETTER (AccessorProhibitsOverwritingGetter);
60
61
static NAN_SETTER (AccessorProhibitsOverwritingSetter);
61
62
v8::Local<v8::Value> ensureJvm ();
You can’t perform that action at this time.
0 commit comments