blob: 652da8589e0d041adcd87e7dca2c4f4ca0e09f3c [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
a = {defineProperties:Object};
function opt() {
a.__proto__ = new Proxy(Object,{ownKeys:opt});
return [];
}
for(var i=0;i<400;i=i+1) {
var prop = null;
var count = 0;
for (t in a) {
opt();
prop = t;
++count;
}
shouldBe(prop, "defineProperties");
shouldBe(count, 1);
}