blob: 24fa364860a6b009da3188952308c530e002b1fa [file] [log] [blame]
function test(object) {
sum = 0;
for (var i in object)
sum += object[i];
return sum;
}
noInline(test);
let o = { };
Object.defineProperty(o, "protoValue", { get() { return "string"; }, enumerable: true });
Object.defineProperty(o, "protoValue2", { get() { return "string1"; }, enumerable: true });
Object.defineProperty(o, "protoValue3", { get() { return "string2"; }, enumerable: true });
for (let i = 0; i < 1e5; ++i)
test(o);