We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e84d37 commit 9c9b0cfCopy full SHA for 9c9b0cf
src/methodCallBaton.cpp
@@ -64,6 +64,7 @@ v8::Handle<v8::Value> MethodCallBaton::runSync() {
64
// called by NanAsyncWorker. This will be on a worker thread
65
void MethodCallBaton::Execute() {
66
JNIEnv* env = javaGetEnv(this->m_java->getJvm(), this->m_java->getClassLoader());
67
+ JavaScope javaScope(env);
68
ExecuteInternal(env);
69
}
70
@@ -73,6 +74,7 @@ void MethodCallBaton::WorkComplete() {
73
74
75
if(callback) {
76
77
78
v8::Handle<v8::Value> result = resultsToV8(env);
79
if (result->IsNativeError()) {
80
v8::Handle<v8::Value> argv[] = {
0 commit comments