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

Method isValueObject

valdi/src/valdi/v8/V8JavaScriptContext.cpp:1062–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1060}
1061
1062bool V8JavaScriptContext::isValueObject(const JSValue& value) {
1063 v8::HandleScope handleScope(_isolate);
1064 JSExceptionTracker tracker(*this);
1065
1066 auto val = fromValdiJSValue(_isolate, value, tracker);
1067 if (!tracker) {
1068 tracker.clearError();
1069 return false;
1070 }
1071 return val->IsObject();
1072}
1073
1074void V8JavaScriptContext::retainValue(const JSValue& value) {
1075 fromValdiJSValueToIndirect(value).retain();

Callers 2

getFromJSPromiseMethod · 0.45
doOnCompleteMethod · 0.45

Calls 2

clearErrorMethod · 0.80
fromValdiJSValueFunction · 0.70

Tested by

no test coverage detected