blob: 3dd651e0ae30c1a2c6a0f9289bcd326ab5237f1e [file] [log] [blame]
(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 != 4.610197065037039e-260)
throw "Error: bad result: " + result;
})();