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

Method valueToLong

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

Source from the content-addressed store, hash-verified

868}
869
870int64_t JavaScriptValueDelegate::valueToLong(const JSValueRef& value, ExceptionTracker& exceptionTracker) const {
871 return _jsContext->valueToLong(value.get(), toJSExceptionTracker(exceptionTracker)).toInt64();
872}
873
874double JavaScriptValueDelegate::valueToDouble(const JSValueRef& value, ExceptionTracker& exceptionTracker) const {
875 return _jsContext->valueToDouble(value.get(), toJSExceptionTracker(exceptionTracker));

Callers 3

jsValueToValueFunction · 0.45
valueObjectToLongMethod · 0.45

Calls 2

toInt64Method · 0.80
getMethod · 0.65

Tested by

no test coverage detected