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

Function jsArrayGetLength

valdi/src/valdi/runtime/JavaScript/JavaScriptUtils.cpp:481–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479Value jsObjectToValue(IJavaScriptContext& jsContext,
480 const JSValue& jsValue,
481 const ReferenceInfoBuilder& referenceInfoBuilder,
482 JSExceptionTracker& exceptionTracker) {
483 auto* valueMarshaller = jsContext.getValueMarshaller();
484
485 if (valueMarshaller == nullptr) {
486 return untypedJsObjectToValue(jsContext, jsValue, referenceInfoBuilder, exceptionTracker);
487 }
488
489 auto output = valueMarshaller->tryUnwrap(jsValue, exceptionTracker);
490 if (!exceptionTracker) {
491 return output;
492 }
493

Callers 6

jsArrayToValueFunction · 0.85
newArrayIteratorMethod · 0.85
setProtobufRepeatedFieldFunction · 0.85
getMessageIndexesFunction · 0.85
codepointsToStrMethod · 0.85

Calls 4

getPropertyNameCachedMethod · 0.80
getMethod · 0.65
getObjectPropertyMethod · 0.45
valueToIntMethod · 0.45

Tested by

no test coverage detected