blob: 0bc968e771350fdb60e5eb7c482eac3e60b1e598 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test()
{
return Object.create(null);
}
noInline(test);
for (var i = 0; i < 1e4; ++i) {
var object = test();
shouldBe(Object.getPrototypeOf(object), null);
shouldBe(JSON.stringify(Object.getOwnPropertyNames(object)), `[]`);
}