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 JSExceptionTracker& exceptionTracker) override {
435 auto propertyValueResult = context.getObjectProperty(object, propertyName, exceptionTracker);
436 if (!exceptionTracker) {
437 return false;
438 }
439
440 if (!context.isValueUndefined(propertyValueResult.get())) {
441 auto cppPropertyName = context.propertyNameToString(propertyName);
442
443 auto convertedProperty = jsValueToValue(context,
444 propertyValueResult.get(),

Callers 1

jsValueToFunctionFunction · 0.85

Calls 2

onErrorMethod · 0.65
getValueTypeMethod · 0.45

Tested by

no test coverage detected