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
866int32_t JavaScriptValueDelegate::valueToInt(const JSValueRef& value, ExceptionTracker& exceptionTracker) const {
867 return _jsContext->valueToInt(value.get(), toJSExceptionTracker(exceptionTracker));
868}
869
870int64_t JavaScriptValueDelegate::valueToLong(const JSValueRef& value, ExceptionTracker& exceptionTracker) const {
871 return _jsContext->valueToLong(value.get(), toJSExceptionTracker(exceptionTracker)).toInt64();

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