Skip to content

Commit

Permalink
fix: save new proxies to nexo.map
Browse files Browse the repository at this point in the history
  • Loading branch information
drusco committed Mar 15, 2024
1 parent 6b4989f commit 4db2723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/getProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 4db2723

Please sign in to comment.