blob: 8ec678a1edd00d8cb80f29831d9c6f63baad4cfe [file] [log] [blame]
// Should not crash when run with ASAN.
function foo(arr1, arr2) {
if (arr1.length != arr2.length) {
return;
}
for (let i = 0; i < arr1.length; i++) {
arr1[i] = arr2[i];
}
}
let arr1 = new Int32Array(100);
for (let i = 0; i < 10000000; i++) {
foo(arr1, arr1);
}