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

Method valueToInt

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

Source from the content-addressed store, hash-verified

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

Callers 13

getParameterAsIntMethod · 0.45
jsArrayGetLengthFunction · 0.45
jsValueToValueFunction · 0.45
runtimeOutputLogMethod · 0.45
notifyErrorHandlerFunction · 0.45
enumCaseToValueMethod · 0.45
valueObjectToIntMethod · 0.45
jsValueToIndexFunction · 0.45
getMessageIndexesFunction · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected