MCPcopy Create free account
hub / github.com/expo/expo / hasProperty

Method hasProperty

packages/expo-modules-core/android/src/main/cpp/JavaScriptObject.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bool 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
75jsi::Value JavaScriptObject::getProperty(const std::string &name) {
76 auto runtime = runtimeHolder.lock();

Calls 3

getMethod · 0.65
assertFunction · 0.50
lockMethod · 0.45