MCPcopy Create free account
hub / github.com/Snapchat/Valdi / hasNativeState

Function hasNativeState

valdi/src/valdi/hermes/HermesJavaScriptContext.cpp:1000–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998 if (!jsObject) {
999 return;
1000 }
1001
1002 uint32_t beginIndex;
1003 uint32_t endIndex;
1004 auto result = hermes::vm::getForInPropertyNames(*_runtime, std::move(jsObject), beginIndex, endIndex);
1005 if (!checkException(result.getStatus(), exceptionTracker)) {
1006 return;
1007 }
1008
1009 const auto& propertyNames = *result;
1010 for (uint32_t i = beginIndex; i < endIndex; i++) {
1011 hermes::vm::GCScope innerGCScope(*_runtime);
1012
1013 auto name = propertyNames->at(*_runtime, i);
1014
1015 JSPropertyNameRef propertyName;
1016

Callers 1

getValueTypeMethod · 0.85

Calls 4

canReceiveNativeStateFunction · 0.85
getStatusMethod · 0.80
getMethod · 0.65
getValueMethod · 0.65

Tested by

no test coverage detected