Change listener map to weak map

This commit is contained in:
Talia 2023-03-06 10:54:20 +01:00
parent 233a96d0e0
commit 0103592665

View file

@ -8,7 +8,7 @@ Example:
l.contract = Sithis.getNewContract()
*/
const registry = new Map()
const registry = new WeakMap()
const listener = (target={}) => {
const callbacks = new Map()
const methods = Object.create(null)