blob: 9164172c6f3c7d78d83e4116276025ba60fea8d6 [file] [log] [blame]
function *find(nodes, p)
{
for (let [array] of nodes) {
if (!array.find((v) => v === p))
continue;
yield array;
}
}
noInline(find);
let map = new Map();
noInline(map[Symbol.iterator]().next);
for (let i = 0; i < 12; ++i)
map.set([1,2,4,5,5], {});
for (let i = 0; i < 1e4; ++i) {
for (let v of find(map, i % 2)) { }
}