blob: 81a91f5f2758988ebc798d3552bb2682d7c113d1 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo() {
return this.f;
}
var binding = foo.bind({f:42});
(function() {
var n = 1000000;
var result = 0;
for (var i = 0; i < n; ++i) {
var myResult = binding();
result += myResult;
}
if (result != n * 42)
throw "Error: bad result: " + result;
})();