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

Method isValueNumber

valdi/src/valdi/v8/V8JavaScriptContext.cpp:1029–1039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027 tracker.clearError();
1028 return false;
1029 }
1030 return val->IsNull();
1031}
1032bool V8JavaScriptContext::isValueFunction(const JSValue& value) {
1033 v8::HandleScope handleScope(_isolate);
1034 JSExceptionTracker tracker(*this);
1035
1036 auto val = fromValdiJSValue(_isolate, value, tracker);
1037 if (!tracker) {
1038 tracker.clearError();
1039 return false;
1040 }
1041 return val->IsFunction();
1042}

Callers

nothing calls this directly

Calls 2

clearErrorMethod · 0.80
fromValdiJSValueFunction · 0.70

Tested by

no test coverage detected