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

Function canReceiveNativeState

valdi/src/valdi/hermes/HermesJavaScriptContext.cpp:893–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891 if (!jsObject) {
892 return;
893 }
894
895 auto result = hermes::vm::JSObject::putComputed_RJS(
896 std::move(jsObject), *_runtime, toHandle(propertyName), toHandle(propertyValue));
897
898 checkException(result.getStatus(), exceptionTracker);

Callers 2

valueToWrappedObjectMethod · 0.85
hasNativeStateFunction · 0.85

Calls 1

isProxyObjectMethod · 0.45

Tested by

no test coverage detected