blob: 0f9c71217a8092a3371c48cb2635d072e2ae3201 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var object = {
$: 32,
test: 33,
hey: 34,
};
function test(object) {
var string = '$';
var count = 0;
for (var i in object) {
++count;
}
for (var i in object) {
++count;
}
return count + string;
}
noInline(test);
for (var i = 0; i < 1e6; ++i)
shouldBe(test(object), `6$`);