blob: 8b909676fdbc874f4966086a06f9714d8494e545 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
var o = $vm.createCustomTestGetterSetter();
o.customValue2 = "foo";
function test(o) {
var result = null;
for (var i = 0; i < 30000; i++)
result = o.customValue2;
return result;
}
for (var k = 0; k < 9; k++) {
var newResult = test(o)
if (newResult != "foo")
throw "Failed at " + k + " with " +newResult;
result = newResult;
o = {__proto__ : o }
}