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