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

Method extractResolve

valdi/src/valdi/runtime/JavaScript/JSPromise.cpp:107–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106JSValueRef JSPromiseOnRejected::operator()(JSFunctionNativeCallContext& callContext) noexcept {
107 ScopedNativeCallActivity activity(getAttributingRuntime(callContext.getContext(), _anrAttribution),
108 _anrAttribution);
109 auto resolvedValue = JSValueRef::makeUnretained(callContext.getContext(), callContext.getParameter(0));
110 auto error = convertJSErrorToValdiError(callContext.getContext(), resolvedValue, nullptr);
111 _callback->onFailure(std::move(error));
112

Callers 1

newBridgedPromiseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected