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 return stashJSValue(valueRef.unsafeReleaseValue(), !wasRetained);
477}
478
479JSValueID IJavaScriptContext::stashJSValue(const JSValue& value) {
480 return stashJSValue(value, true);
481}
482
483JSValueID IJavaScriptContext::stashJSValue(const JSValue& value, bool shouldRetain) {
484 if (VALDI_UNLIKELY(_tearingDown)) {
485 return JSValueID();
486 }
487
488 auto id = _sequenceIdGenerator.newId();

Callers 2

getJsValueMethod · 0.80
doFullfillMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected