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

Method makeRetained

valdi/src/valdi/runtime/JavaScript/JavaScriptTypes.hpp:172–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 }
171
172 static JSRef<T> makeRetained(IJavaScriptContext& context, const T& value) {
173 auto ref = JSRef<T>(&context, value, false);
174 ref.retain();
175 return ref;
176 }
177
178 static JSRef<T> makeUnretained(IJavaScriptContext& context, const T& value) {
179 return JSRef<T>(&context, value, false);

Callers

nothing calls this directly

Calls 1

retainMethod · 0.45

Tested by

no test coverage detected