blob: 78b562f8324518f2316fef67d5dd89b172364d4d [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo(o) {
var result = 0;
for (var i = 0; i < 100000; ++i) {
result += o.f.g.h.i.j;
if (o.g)
result += o.h;
}
return result;
}
for (var i = 0; i < 100; ++i) {
var o = {f:{g:{h:{i:{j:1}}}}, g:false, h:42};
var result = foo(o);
if (result != 100000)
throw "Error: bad result: " + result;
}