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

Function jsErrorToValue

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

Source from the content-addressed store, hash-verified

716 const JSValueFunctionFactory& factory) {
717 if (!jsContext.isValueFunction(jsValue)) {
718 throwInvalidType(jsContext, jsValue, exceptionTracker, ValueType::Function);
719 return nullptr;
720 }
721
722 return jsFunctionToFunction(jsContext, jsValue, referenceInfoBuilder, exceptionTracker, factory);
723}

Callers 1

jsValueToValueFunction · 0.85

Calls 2

ValueClass · 0.50

Tested by

no test coverage detected