Fix graph.links cannot be iterated (#932)

Proxied links object now correctly supports spread operator.
This commit is contained in:
filtered
2025-04-16 19:13:20 +10:00
committed by GitHub
parent af3fa1cd8c
commit 51ec57dc5c

View File

@@ -59,5 +59,7 @@ export class MapProxyHandler<V> implements ProxyHandler<Map<number | string, V>>
map.entries = map.entries.bind(map)
map.keys = map.keys.bind(map)
map.values = map.values.bind(map)
map[Symbol.iterator] = map[Symbol.iterator].bind(map)
}
}