//@ skip | |
var array = new Array(10000); | |
for (var i = 0; i < 70000; ++i) | |
array[i % array.length] = new DataView(new ArrayBuffer(10)); | |
for (var i = 0; i < array.length; ++i) { | |
if (array[i].byteLength != 10) | |
throw "Error: bad length: " + array[i].byteLength; | |
if (array[i].buffer.byteLength != 10) | |
throw "Error: bad buffer.byteLength: " + array[i].buffer.byteLength; | |
} |