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

Method valueIsNull

valdi/src/valdi/runtime/JavaScript/JavaScriptValueDelegate.cpp:862–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

860}
861
862bool JavaScriptValueDelegate::valueIsNull(const JSValueRef& value) const {
863 return _jsContext->isValueNull(value.get()) || _jsContext->isValueUndefined(value.get());
864}
865
866int32_t JavaScriptValueDelegate::valueToInt(const JSValueRef& value, ExceptionTracker& exceptionTracker) const {
867 return _jsContext->valueToInt(value.get(), toJSExceptionTracker(exceptionTracker));

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
isValueNullMethod · 0.45
isValueUndefinedMethod · 0.45

Tested by

no test coverage detected