blob: f9194a302a66dd024b3f1535ecfb685a4827623b [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function Foo() {
this.bar = function() { return 1; };
}
var sum = 0;
for (var i = 0; i < 100000; i++) {
var f = new Foo();
sum += f.bar();
}
if (sum != 100000)
throw "Error: incorrect sum. Expected 10000 but got " + sum + ".";