File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1050,6 +1050,13 @@ NAN_METHOD(Java::instanceOf) {
10501050void EIO_CallJs (uv_work_t * req) {
10511051}
10521052
1053+ template <typename T>
1054+ std::string to_string (T value) {
1055+ std::ostringstream os;
1056+ os << value;
1057+ return os.str ();
1058+ }
1059+
10531060#if NODE_MINOR_VERSION >= 10
10541061void EIO_AfterCallJs (uv_work_t * req, int status) {
10551062#else
@@ -1065,7 +1072,7 @@ void EIO_AfterCallJs(uv_work_t* req) {
10651072 int ret = dynamicProxyData->java ->getJvm ()->GetEnv ((void **)&env, JNI_BEST_VERSION);
10661073 if (ret != JNI_OK) {
10671074 dynamicProxyData->throwableClass = " java/lang/IllegalStateException" ;
1068- dynamicProxyData->throwableMessage = " Could not retrieve JNIEnv: jvm->GetEnv returned " + std:: to_string (ret);
1075+ dynamicProxyData->throwableMessage = " Could not retrieve JNIEnv: jvm->GetEnv returned " + to_string< int > (ret);
10691076 dynamicProxyData->done = DYNAMIC_PROXY_JS_ERROR;
10701077 return ;
10711078 }
You can’t perform that action at this time.
0 commit comments