blob: fabc33dc1d4b932a8509c9786d46dbb5932c2c19 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
(function() {
var m = 1000;
var n = 1000;
var o = {valueOf: function() { return 42; }};
var result = 0;
for (var i = 0; i < m; ++i) {
result += o ^ 2;
for (var j = 0; j < n; ++j)
result *= 1.1;
for (var j = 0; j < n; ++j)
result /= 2;
}
if (result != 9.220394130074086e-259)
throw "Error: bad result: " + result;
})();