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

Method extractReject

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

Source from the content-addressed store, hash-verified

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
113 return callContext.getContext().newUndefined();
114}
115
116PromiseExecutor::PromiseExecutor() = default;

Callers 1

newBridgedPromiseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected