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 return;
999 }
1000 auto symbolId = hermes::vm::stringToSymbolID(*_runtime, std::move(strResult.getValue()));
1001 if (!checkException(symbolId.getStatus(), exceptionTracker)) {
1002 return;
1003 }
1004
1005 propertyName = toPropertyNameRef(symbolId.getValue());
1006 }
1007
1008 if (!propertyName.empty()) {
1009 if (!visitor.visitPropertyName(*this, object, propertyName.get(), exceptionTracker)) {
1010 return;
1011 }
1012 }
1013 }
1014}
1015
1016static hermes::vm::CallResult<hermes::vm::PseudoHandle<hermes::vm::StringPrimitive>> toString(

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