blob: 7b9d091778d9c5aa6ac20cbb4f326cd7913577c2 [file] [log] [blame]
function foo(a) {
return typeof(a) == "string";
}
var array = ["string", 5, 6.5, void(0), null, true, false, {f:42}, [1, 2, 3]];
var result = 0;
for (var i = 0; i < 100000; ++i) {
result *= 3;
result += foo(array[i % array.length]) | 0;
result |= 0;
}
if (result != 995173904)
throw "Bad result: " + result;