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

Method isValueUndefined

valdi/src/valdi/v8/V8JavaScriptContext.cpp:995–1005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

993}
994
995bool V8JavaScriptContext::isValueUndefined(const JSValue& value) {
996 v8::HandleScope handleScope(_isolate);
997 JSExceptionTracker tracker(*this);
998
999 auto val = fromValdiJSValue(_isolate, value, tracker);
1000 if (!tracker) {
1001 tracker.clearError();
1002 return false;
1003 }
1004 return val->IsUndefined();
1005}
1006bool V8JavaScriptContext::isValueNull(const JSValue& value) {
1007 v8::HandleScope handleScope(_isolate);
1008 JSExceptionTracker tracker(*this);

Callers 14

doOnCompleteMethod · 0.45
doCancelMethod · 0.45
nameFromJSFunctionFunction · 0.45
visitPropertyNameMethod · 0.45
runtimeCreateContextMethod · 0.45
runtimeLoadModuleMethod · 0.45
getValueForObjectKeyMethod · 0.45
getObjectForIdMethod · 0.45
visitPropertyNameMethod · 0.45
valueIsNullMethod · 0.45

Calls 3

clearErrorMethod · 0.80
IsUndefinedMethod · 0.80
fromValdiJSValueFunction · 0.70

Tested by

no test coverage detected