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

Method valueToString

valdi/src/valdi/hermes/HermesJavaScriptContext.cpp:810–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808 if (result.getStatus() == hermes::vm::ExecutionStatus::EXCEPTION) {
809 _runtime->clearThrownValue();
810 return false;
811 }
812
813 return result.getValue();
814}
815
816void HermesJavaScriptContext::setObjectProperty(const JSValue& object,
817 const JSPropertyName& propertyName,
818 const JSValue& propertyValue,
819 bool enumerable,
820 JSExceptionTracker& exceptionTracker) {
821 hermes::vm::GCScope gcScope(*_runtime);
822 auto jsObject = toJSObject(object, exceptionTracker);
823 if (!jsObject) {
824 return;
825 }
826
827 auto symbolId = toSymbolID(propertyName);
828
829 if (enumerable) {

Callers

nothing calls this directly

Calls 8

getGlobalFunction · 0.85
getStatusMethod · 0.80
makeStringMethod · 0.80
makeStringFromUTF16Method · 0.80
toStringFunction · 0.70
getValueMethod · 0.65
StringBoxClass · 0.50
lengthMethod · 0.45

Tested by

no test coverage detected