blob: 927cb691e857540f37d1c9154b4f51c357055f3d [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
Object.defineProperty(Array.prototype, "sort", { writable: false, value: Array.prototype.sort });
function test(array) {
array = array.splice(2, 2);
array = array.slice(0, 5);
array = array.concat([1,2,3]);
return array;
}
noInline(test);
for (let i = 0; i < 100000; i++)
test([1,2,3,4,5,6,7,8,9]);