function testNewObject() { var a = {}; for (var i = 0; i < 10; ++i) a = new Object(); return a; } assertEq(testNewObject().__proto__, {}.__proto__);