blob: 79fda227dab9e71ecd7ef7518d911baa8642753e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
var arr = [];
for (var i=0; i<20; i++) {
arr.push(new Int32Array(2000));
}
arr.push([null, null]);
function test(o, x) {
assertEq(o[0], x);
}
function f() {
for (var i=0; i<3100; i++) {
var o = arr[i % arr.length];
if (o.length > 10 || i > 2000) {
var val = (i > 3000 ? 1 : null);
o[0] = val;
if (o.length < 5)
test(o, val);
}
}
}
f();
|