Update ReadMe.md
[qtwebkit.git] / JSTests / microbenchmarks / ArrayBuffer-Int8Array-alloc-long-lived.js
bloba4ced313648859d43ba6e9b71ac99a4f7ffd4f9b
1 //@ skip
3 var array = new Array(10000);
5 for (var i = 0; i < 70000; ++i)
6 array[i % array.length] = new Int8Array(new ArrayBuffer(10));
8 for (var i = 0; i < array.length; ++i) {
9 if (array[i].length != 10)
10 throw "Error: bad length: " + array[i].length;
11 if (array[i].buffer.byteLength != 10)
12 throw "Error: bad buffer.byteLength: " + array[i].buffer.byteLength;