michael@0: var a = []; michael@0: var x, i; michael@0: for (i = 0; i < 18; i++) { michael@0: a[i] = function (b) { this.b = b; }; michael@0: if (i != 17) michael@0: x = a[i].prototype; michael@0: } michael@0: for (i = 0; i < 18; i++) michael@0: x = new a[i]; michael@0: assertEq(toString.call(x), "[object Object]"); michael@0: assertEq(Object.getPrototypeOf(x), a[17].prototype);