| 73 | } |
| 74 | |
| 75 | jsi::Value JavaScriptObject::getProperty(const std::string &name) { |
| 76 | auto runtime = runtimeHolder.lock(); |
| 77 | assert((runtime != nullptr) && "JS Runtime was used after deallocation"); |
| 78 | auto &rawRuntime = runtime->get(); |
| 79 | |
| 80 | return jsObject->getProperty(rawRuntime, name.c_str()); |
| 81 | } |
| 82 | |
| 83 | bool JavaScriptObject::jniHasProperty(jni::alias_ref<jstring> name) { |
| 84 | return hasProperty(name->toStdString()); |