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

Method newWeakRef

valdi/src/valdi/v8/V8JavaScriptContext.cpp:510–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510JSValueRef V8JavaScriptContext::newWeakRef(const JSValue& object, JSExceptionTracker& exceptionTracker) {
511 v8::HandleScope handleScope(_isolate);
512 auto indirect = fromValdiJSValueToIndirect(object);
513 return toUnretainedJSValueRef(indirect);
514}
515
516JSValueRef V8JavaScriptContext::derefWeakRef(const JSValue& weakRef, JSExceptionTracker& exceptionTracker) {
517 v8::HandleScope handleScope(_isolate);

Callers 1

setObjectForIdMethod · 0.45

Calls 1

Tested by

no test coverage detected