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

Function toPropertyAttributes

valdi/src/valdi/jscore/JavaScriptCoreContext.cpp:862–868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

860 return cppString;
861}
862
863Valdi::Ref<Valdi::StaticString> JavaScriptCoreContext::valueToStaticString(
864 const Valdi::JSValue& value, Valdi::JSExceptionTracker& exceptionTracker) {
865 JSValueRef exception = nullptr;
866 auto stringRef = JSValueToStringCopy(getJSGlobalContext(), fromValdiJSValue(value).valueRef, &exception);
867 if (exception != nullptr) {
868 storeException(exceptionTracker, exception);
869 return nullptr;
870 }
871

Callers 1

setObjectPropertyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected