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

Method removeWeakReference

valdi/src/valdi/quickjs/QuickJSJavaScriptContext.cpp:458–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456 if (!checkCall(
457 exceptionTracker,
458 JS_SetProperty(
459 _context, value, _objectFinalizerAtomKey, fromValdiJSValue(finalizerObject.unsafeReleaseValue())))) {
460 return 0;
461 }
462
463 return weakReferenceId;
464}
465
466Valdi::JSValueRef QuickJSJavaScriptContext::newWeakRef(const Valdi::JSValue& object,
467 Valdi::JSExceptionTracker& exceptionTracker) {

Callers 1

Calls 4

guardMethod · 0.80
endMethod · 0.65
findMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected