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

Function jsValueToFunction

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

Source from the content-addressed store, hash-verified

667 const JSValue& jsValue,
668 const ReferenceInfo& referenceInfo,
669 JSExceptionTracker& exceptionTracker) {
670 return makeShared<UntypedValueFunctionWithJSValue>(jsContext, jsValue, referenceInfo, exceptionTracker);
671 };
672}
673
674Ref<ValueFunction> jsFunctionToFunction(IJavaScriptContext& jsContext,
675 const JSValue& jsValue,
676 const ReferenceInfoBuilder& referenceInfoBuilder,
677 JSExceptionTracker& exceptionTracker,
678 const JSValueFunctionFactory& factory) {

Callers 3

TEST_PFunction · 0.85
getGlobalOnMessageFunction · 0.85

Calls 4

throwInvalidTypeFunction · 0.85
jsFunctionToFunctionFunction · 0.85
isValueFunctionMethod · 0.45

Tested by 1

TEST_PFunction · 0.68