From 51ec57dc5c75745c636389ccb5ef338430fe7b8a Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Wed, 16 Apr 2025 19:13:20 +1000 Subject: [PATCH] Fix graph.links cannot be iterated (#932) Proxied links object now correctly supports spread operator. --- src/MapProxyHandler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MapProxyHandler.ts b/src/MapProxyHandler.ts index 65e249cab..3935d8ce6 100644 --- a/src/MapProxyHandler.ts +++ b/src/MapProxyHandler.ts @@ -59,5 +59,7 @@ export class MapProxyHandler implements ProxyHandler> 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) } }