blob: 331e8ba7006ec7f34dcc85982f62dcac39084ebf [file] [log] [blame]
function foo() {
var x = 4;
var s;
var i;
for (i = 0; i < 2001; i++) {
if (i == 2000)
x = -4;
s = 1/(x%4);
}
return s;
}
var x = (1/((-4)%4)).toString();
var y = foo().toString();
if (x != y)
throw "Error: bad result: " + y + " (expected " + x + ")";