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

Method getStashedJSValue

valdi/src/valdi/runtime/Interfaces/IJavaScriptContext.cpp:478–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478std::optional<JSValue> IJavaScriptContext::getStashedJSValue(const JSValueID& id) {
479 auto* stashedJSValue = doGetStashedJSValue(id);
480 if (stashedJSValue == nullptr) {
481 return std::nullopt;
482 }
483
484 return {stashedJSValue->value};
485}
486
487std::vector<JSValue> IJavaScriptContext::getAllStashedJSValues() {
488 std::vector<JSValue> out;

Callers 2

getJsValueMethod · 0.80
doFullfillMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected