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

Function doReleaseJsValue

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

Source from the content-addressed store, hash-verified

107 return JSValue();
108 }
109
110 return jsValue.value();
111}
112
113void JSValueRefHolder::clearJsValue(IJavaScriptContext& jsContext) {
114 auto lock = _context->lock();
115 auto jsValueId = _jsValueId;
116
117 if (jsValueId.isNull()) {
118 return;

Callers 1

doDisposeMethod · 0.85

Calls 2

removedStashedJSValueMethod · 0.80

Tested by

no test coverage detected