blob: 8df8b128ca6a4e544ecd738b9005d3f506c63a67 [file] [log] [blame]
function foo(x, d){
return x + d.getTimezoneOffset();
}
noInline(foo);
var d = new Date();
var expected = foo(0, d);
var count = 1000000;
var result = 0;
for (var i = 0 ; i < count; i++){
result += foo(0, d);
}
if (result != count * expected)
throw "Error: bad result: " + result;