blob: 9b8eaf32769bf561f84ef301016a436ec6f84e50 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test(target)
{
return Object(target);
}
noInline(test);
(function () {
for (var i = 0; i < 1e4; ++i) {
var object = test(null);
shouldBe(object.__proto__, Object.prototype);
}
}());