1 function doTest(arr1, arr2) {
2 if (arr1.length != arr2.length)
4 for (let i=0; i<arr1.length; ++i) {
11 for (size of [1, 3, 8, 10, 12, 16]) {
12 let arr1 = new Int32Array(size)
13 let arr2 = new Int32Array(size)
14 for (let i=0; i<arr1.length; ++i) {
18 for (let i=0; i<50000000; ++i) doTest(arr1, arr2)
20 arr2 = new Int32Array(arr1.length)
23 for (let i=0; i<arr1.length; ++i) {
24 if (arr2[i] != arr1[i])
25 throw "Error: bad copy: " + i + " " + arr1[i] + " " + arr2[i]