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 auto classDelegate = JavaScriptClassDelegate::make(*_jsContext, schema->getPropertiesSize());
869
870 size_t propertyIndex = 0;
871 for (const auto& property : *schema) {
872 classDelegate->setPropertyName(propertyIndex, _jsContext->newPropertyName(property.name.toStringView()));
873 propertyIndex++;
874 }
875

Callers 3

jsValueToValueFunction · 0.45
valueObjectToLongMethod · 0.45

Calls 2

toInt64Method · 0.80
getMethod · 0.65

Tested by

no test coverage detected