blob: 5bbd5499a779b134222464102ab182a0a1111867 [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 1; }};
var result = 0;
for (var i = 0; i < m; ++i) {
result += 1 << o;
for (var j = 0; j < n; ++j)
result *= 1.1;
for (var j = 0; j < n; ++j)
result /= 2;
}
if (result != 4.610197065037039e-260)
throw "Error: bad result: " + result;
})();