diff --git a/src/utils/getProxy.ts b/src/utils/getProxy.ts index b4a322a..3eff8b9 100644 --- a/src/utils/getProxy.ts +++ b/src/utils/getProxy.ts @@ -44,7 +44,7 @@ const getProxy = (scope: Nexo, target?: Nexo.traceable): Nexo.Proxy => { map.tracables.set(target, proxy); } - scope.link(proxyId, proxy); + scope.map.set(proxyId, new WeakRef(proxy)); return proxy; };