MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / WeakRef

Function WeakRef

packages/ui-default/polyfill.ts:25–27  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

23 // @ts-ignore
24 window.WeakRef = (function (wm) {
25 function WeakRef(target) {
26 wm.set(this, target);
27 }
28 WeakRef.prototype.deref = function () {
29 return wm.get(this);
30 };

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected