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

Function throwInvalidType

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

Source from the content-addressed store, hash-verified

434 if (!exceptionTracker) {
435 return false;
436 }
437
438 if (!context.isValueUndefined(propertyValueResult.get())) {
439 auto cppPropertyName = context.propertyNameToString(propertyName);
440
441 auto convertedProperty = jsValueToValue(context,
442 propertyValueResult.get(),
443 referenceInfoBuilder.withProperty(cppPropertyName),
444 exceptionTracker);

Callers 1

jsValueToFunctionFunction · 0.85

Calls 2

onErrorMethod · 0.65
getValueTypeMethod · 0.45

Tested by

no test coverage detected