summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testNewObject.js
blob: 028523c011dced871f1f84a08cdc9625a9ef7bae (plain)
1
2
3
4
5
6
7
8
function testNewObject()
{
    var a = {};
    for (var i = 0; i < 10; ++i)
	a = new Object();
    return a;
}
assertEq(testNewObject().__proto__, {}.__proto__);