mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 19:41:36 -05:00
444c46c515
A for-in loop asks only the proxies whose ownKeys trap listed a name for its descriptor. When a getPrototypeOf trap returned a new proxy of the same target on each call, the proxy met before each name was not the one that listed it, so the name was skipped. The loop now records, for each proxy, the proxy its prototype lookup returned, and a new proxy of that same target in its place answers for it. Proxies that list nothing are recorded too, so another proxy of their target does not answer for them, and the listing proxies stay rooted until the iterator holds them. Follows #10185.