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