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

Method runtimeTrace

valdi/src/valdi/runtime/JavaScript/JavaScriptRuntime.cpp:944–953  ·  view source on GitHub ↗

NOLINTNEXTLINE(readability-convert-member-functions-to-static)

Source from the content-addressed store, hash-verified

942
943 return callContext.getContext().newArrayWithValues(
944 outputSize.begin(), outputSize.size(), callContext.getExceptionTracker());
945}
946
947JSValueRef JavaScriptRuntime::runtimeSubmitRenderRequest(JSFunctionNativeCallContext& callContext) {
948 const auto& referenceInfo = callContext.getReferenceInfo();
949 auto& exceptionTracker = callContext.getExceptionTracker();
950 auto rawRequest = callContext.getParameter(0);
951 CHECK_CALL_CONTEXT(callContext);
952 auto callback = callContext.getParameterAsFunction(1);
953 CHECK_CALL_CONTEXT(callContext);
954
955 // JS code can execute under a context that has already been destroyed (eg. a
956 // callback firing after a modal is dismissed or a component is torn down).

Callers

nothing calls this directly

Calls 5

makeSubContextMethod · 0.80
getParameterMethod · 0.80
getParameterAsStringMethod · 0.45
callObjectAsFunctionMethod · 0.45
getContextMethod · 0.45

Tested by

no test coverage detected