Source code
Revision control
Copy as Markdown
Other Tools
function testNewObject()
{
var a = {};
for (var i = 0; i < 10; ++i)
a = new Object();
return a;
}
assertEq(testNewObject().__proto__, {}.__proto__);
function testNewObject()
{
var a = {};
for (var i = 0; i < 10; ++i)
a = new Object();
return a;
}
assertEq(testNewObject().__proto__, {}.__proto__);