blob: 20926642972c0bb08f41b6ed032e20033c282aa8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
gczeal(2);
function A(a) { this.a = a; }
function B(b) { this.b = b; }
function C(c) { this.c = c; }
function makeArray(n) {
var classes = [A, B, C];
var arr = [];
for (var i = 0; i < n; i++) {
arr.push(new classes[i % 3](i % 3));
}
}
var arr = makeArray(30000);
|