blob: 0dc11183a1fedadb6b0e0ce1f7f9b9d65bc6db63 [file] [log] [blame]
function assert(b) {
if (!b)
throw new Error;
}
function test1() {
function count(o) {
let c = 0;
for (let p in o) {
if (o.hasOwnProperty(p))
++c;
}
return c;
}
noInline(count);
let o = {
a:20,
b:30,
c:40,
d:50
};
for (let i = 0; i < 600000; ++i) {
assert(count(o) === 4);
}
}
test1();