| 65 | } |
| 66 | |
| 67 | bool JavaScriptObject::hasProperty(const std::string &name) { |
| 68 | auto runtime = runtimeHolder.lock(); |
| 69 | assert((runtime != nullptr) && "JS Runtime was used after deallocation"); |
| 70 | auto &rawRuntime = runtime->get(); |
| 71 | |
| 72 | return jsObject->hasProperty(rawRuntime, name.c_str()); |
| 73 | } |
| 74 | |
| 75 | jsi::Value JavaScriptObject::getProperty(const std::string &name) { |
| 76 | auto runtime = runtimeHolder.lock(); |