michael@0: function test(makeNonArray) { michael@0: function C() {} michael@0: C.prototype = [] michael@0: c = new C(); michael@0: c.push("foo"); michael@0: return c.length michael@0: } michael@0: assertEq(test(true), 1); michael@0: var a = []; michael@0: var b = Object.create(a);