mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
Array.prototype methods called on a host collection with more than 4,096 elements, such as forEach over a document's page items, visited only the indices held as properties. A host collection keeps its elements in the host, so those methods skipped every element. They now visit every index of an object whose class has an indexer. Each element read also called the indexer twice, once to test presence and once to read the value. The methods now read an index of such an object with one call, the one `k in object` makes, and take its answer as the element.