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

Function fromValdiJSValue

valdi/src/valdi/v8/V8JavaScriptContext.cpp:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98inline v8::Local<v8::Value> fromValdiJSValue(v8::Isolate* isolate,
99 const JSValue& jsValue,
100 JSExceptionTracker& exceptionTracker) {
101 const IndirectV8Persistent indirect = fromValdiJSValueToIndirect(jsValue);
102 const v8::Local<v8::Value> retval = indirect.get(isolate);
103 if (retval.IsEmpty()) {
104 exceptionTracker.onError("Provided JSValue does not contain an underlying value");
105 return v8::Local<v8::Value>();
106 } else {
107 return retval;
108 }
109}
110
111inline v8::Local<v8::String> fromValdiJSPropertyName(v8::Isolate* isolate,
112 const JSPropertyName& value,

Callers 15

InvokeCallableFunction · 0.70
newArrayWithValuesMethod · 0.70
getObjectPropertyMethod · 0.70
hasObjectPropertyMethod · 0.70
setObjectPropertyMethod · 0.70
valueToStringMethod · 0.70
valueToStaticStringMethod · 0.70
valueToBoolMethod · 0.70

Calls 4

getMethod · 0.65
onErrorMethod · 0.65
IsEmptyMethod · 0.45

Tested by

no test coverage detected