blob: e86528793fc16abc1763391714b46111b7f41ab1 [file] [log] [blame]
(function() {
var trapResult = [];
var proxy = new Proxy({}, {
ownKeys: function() { return trapResult; },
});
var j = 0, lengthSum = 0;
for (; j < 200_000; ++j)
lengthSum += Reflect.ownKeys(proxy).length;
if (lengthSum !== trapResult.length * j)
throw "Bad assertion!";
})();