3 var array = new Array(10000);
5 for (var i = 0; i < 100000; ++i)
6 array[i % array.length] = new Int8Array(new ArrayBuffer(1000));
8 for (var i = 0; i < array.length; ++i) {
9 if (array[i].length != 1000)
10 throw "Error: bad length: " + array[i].length;
11 if (array[i].buffer.byteLength != 1000)
12 throw "Error: bad buffer.byteLength: " + array[i].buffer.byteLength;