blob: b87d0049fb61680116c672656a7dccd272544b8a [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(undefined);
shouldBe(object.__proto__, Object.prototype);
}
}());