MCPcopy Create free account
hub / github.com/NativeScript/android / RunWorker

Method RunWorker

test-app/runtime/src/main/cpp/Runtime.cpp:299–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void Runtime::RunWorker(jstring scriptFile) {
300 // TODO: Pete: Why do I crash here with a JNI error (accessing bad jni)
301 string filePath = ArgConverter::jstringToString(scriptFile);
302 auto context = this->GetContext();
303 m_module.LoadWorker(context, filePath);
304}
305
306jobject Runtime::RunScript(JNIEnv* _env, jobject obj, jstring scriptFile) {
307 JEnv env(_env);

Callers 1

Calls 2

GetContextMethod · 0.95
LoadWorkerMethod · 0.80

Tested by

no test coverage detected