blob: cbe0b21ef899d9d6db51b8ee2d54b2752f66f079 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function Foo(f, g)
{
this.f = f;
this.g = g;
Object.preventExtensions(this);
}
(function() {
var result = 0;
for (var i = 0; i < 10000; ++i) {
var o = new Foo(i, i + 1);
for (var j = 0; j < 1000; ++j)
result += o.f * o.g;
}
if (result != 333333330000000)
throw "Error: bad result: " + result;
})();